Thread

Index > Scribe > Console is only printing assembly code
Author/Date Console is only printing assembly code
Scott
08/04/2017 10:14pm
The Console is not printing the intended debug information in a readable format but is instead printing what resembles assembly code.

For example, the following code segment is being printed:
000005CC R1 = G1->DomGet(G9, G4)
000005DD R1 = R1->DomGet(G10, G4)
000005EE Assign R2 <- G37
000005F7 Plus R2 += R1
00000600 Plus R2 += G38
00000609 Call: R0 = Print(R2)
  68:
00000618 Call: R0 = Print(G39)
  69:
00000627 R0 = G2->DomCall(G40, )
  70:
00000638 Call: R0 = Print(G41)

I don't want to have to look up the contents of R2 or G39 in order to see what is printed. Is there any way to switch this back to printing the strings rather than the string names?
fret
10/04/2017 10:12am
Currently there is no better symbol support. Something I can look at adding in the future. But I would have to add a symbol table to the compiler output.
fret
10/04/2017 10:15am
Actually I'm thinking about swapping the scripting language out and substituting a small javascript library. But it remains to be seen if the integration with Lgi types is possible. The current syntax seamlessly allows calling into the C++ code via DOM notation. Which is a big plus. I'd hate to lose that. But there are plenty of rough edges in the language. I think maybe I'm trying to do too much. Maybe.
Scott
10/04/2017 10:25pm
I might have phrased my question incorrectly. How do I turn off the debug statements in the script console so that only the output of the print statements is visible? I usually don't want to see the debug information of string contents and jumps that are being made.
Scott
10/04/2017 10:27pm
By the way, I'm very fond of the scripting language as it is and prefer it over a JavaScript library.
fret
12/04/2017 9:49am
How do I turn off the debug statements in the script console
You know the other day I wanted to do the same thing. And spent a while looking for the code that causes the disassembly to dump to the console and it wouldn't print anything. Then I ran out of time and had to do something else. So yes, it's on the todo list to get rid of it.
fret
13/04/2017 10:29pm
How do I turn off the debug statements in the script console
I've fixed this.
Reply