Replies: 3 comments 1 reply
-
This happens if there are two components with the same name. The simulator identifies the components by name. If there are two with the same name, this name is no longer unique. For example, has a jar file been included which contains a component with a certain name and another component with the same name registered in debug mode? |
Beta Was this translation helpful? Give feedback.
-
Some tinkering later, here are my observations
will update if I get more info into the situation |
Beta Was this translation helpful? Give feedback.
-
Hey @hneemann, I found out why it's not working and why it worked when there was a file in file history. It has to do with the order of executions and the following lines of code Digital/src/main/java/de/neemann/digital/gui/Main.java Lines 194 to 202 in 426a1e1 Here is a detailed explanationThe order of executions is as follows when debugging
The gotchaFirst two calls to the |
Beta Was this translation helpful? Give feedback.
-
I am trying to create a custom component and debug it, and there are two issues I am facing
when debugging the component is greyed out
java -cp "digitaln2t-1.0-SNAPSHOT.jar:/path/to/Digital/Digital.jar" com.github.itoshkov.digitaln2t.Nand2TetrisComponentSource
,java -cp "target/pluginExample-1.0-SNAPSHOT.jar:Digital.jar" de.neemann.digital.plugin.DemoCompone ntSource
and tried using vscode java debugger, the same is the resultthis is a minor inconvenience, but just wanted to know about it, when using vscode java debugger and making changes to the file the changes are not reflected in the Digital instance that was opened with debugger.
Beta Was this translation helpful? Give feedback.
All reactions