-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unicon Debug Adapter V1 #353
Conversation
fdda26a
to
b01f820
Compare
e978a6e
to
6da264d
Compare
fea1c34
to
d55ba84
Compare
d55ba84
to
2b58129
Compare
3e535a2
to
632ff29
Compare
632ff29
to
00c102a
Compare
00c102a
to
2af6bc0
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
some minor formatting comments
uni/udb/breakpoint.icn
Outdated
msg := "\n No breakpoints are available to be deleted." | ||
setResultTable(resultTable, "No breakpoint are available to be deleted", "__false__") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
indentation is off
uni/udb/breakpoint.icn
Outdated
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
indentation
uni/udb/breakpoint.icn
Outdated
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
indentation
uni/udb/breakpoint.icn
Outdated
msg := "\n All breakpoints are enabled; ("||j||" total)." | ||
setResultTable(resultTable, "All breakpoints are enabled; ("||j||" total)", "__true__") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
indentation
uni/udb/data.icn
Outdated
localsTable := table() | ||
localsTable["type"] := "locals" | ||
|
||
if /DState.mode | \DState.mode ~== "-adapter" then put(output,"\n Local variables:") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
then...
new line
uni/udb/data.icn
Outdated
if /DState.mode | \DState.mode ~== "-adapter" then put(output," "||x||" = "||image(i)||" : "|| type(i)) | ||
else { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ditto
uni/udb/session.icn
Outdated
if \DState.mode == "-adapter" then EvInit(DState.TP, DState.progSock, DState.progSock, DState.progSock) | stop("cant start evinit on " || DState.TP[1]) | ||
else EvInit(DState.TP) | stop("cant start evinit on " || DState.TP[1]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if... then
expr
else
expr
and we should not stop()
, maybe just warn and move on?
uni/udb/stack.icn
Outdated
@@ -278,4 +291,4 @@ initially() | |||
BaseFrame := 0 | |||
|
|||
Message := "" | |||
end | |||
end |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
newline at the end of the file
uni/udb/state.icn
Outdated
if type(Msg) == "table" then { | ||
if member(Msg, "code") then Msg["code"] := replacem(\Msg["code"], "\"", "\\\"") | ||
if member(Msg, "name") then Msg["name"] := replacem(\Msg["name"], "\"", "\\\"") | ||
if member(Msg, "consoleMsg") then Msg["consoleMsg"] := replacem(\Msg["consoleMsg"], "\"", "\\\"") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
then...
new line
uni/udb/state.icn
Outdated
writes(sock, utoj(Msg)) | ||
} | ||
else { | ||
output := table("consoleMsg", replacem(Msg, "\"", "\\\""), "state", State) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use table syntax? output := [ ...; ...; ]
uni/udb/stepping.icn
Outdated
@@ -160,7 +160,7 @@ method checkStep() | |||
DState.srcFile.getSrcLine(cur_file, cur_line) | |||
msg||:="\n "||cur_line+1||":"|| | |||
DState.srcFile.getSrcLine(cur_file, cur_line+1) | |||
DState.Write(msg) | |||
DState.Write(table("type", "step", "line", cur_line, "source", cur_file, "consoleMsg", msg)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
table syntax
can you define those variables for now, until the issue is fixed in the unicon compiler?
|
Tableize breakpoint Tableize stackFrame Tableize checkstep Tableize run Add full reset command Alter required response handling Alter error handling Update version number Signed-off-by: mstreeter10 <[email protected]>
Attempt to start udb in adapter mode Debuggee communication reconfiguration Add debuggee error handling Add debug console handling Respond to stackTrace request Respond to scope and variables requests Respond to continue, next, stepIn, and stepOut Add runInTerminal features Add udb and socket error handling Signed-off-by: mstreeter10 <[email protected]> Simplify code in a few places Signed-off-by: Jafar Al-Gharaibeh <[email protected]>
2af6bc0
to
439eb10
Compare
Unicon Debug Adapter V1
No description provided.