Show Changes Show Changes
Print Print
Recent Changes Recent Changes
Subscriptions Subscriptions
Lost and Found Lost and Found
Find References Find References
Rename Rename
Administration Page Administration Page
Topic Locks Topic Locks

Search

History

1/19/2017 3:34:53 AM
-202.93.230.29
9/8/2016 3:56:44 PM
182.19.136.8
8/25/2016 2:54:30 AM
-180.178.96.8
4/26/2016 4:28:36 AM
-180.178.96.8
4/6/2016 2:06:30 PM
-182.19.136.8
List all versions List all versions

RSS feed for the SquirrelWiki namespace

SQDBG Protocol Reference
.

SQDBG is designed to be portable and very simple to integrate with IDEs. The protocol is based on text commands VM to DEBUGGER and XML DEBUGGER to VM.

Packets are \n terminated so it can be tested by using telnet.

VM -> DEBUGGER

*packets are UTF8 encoded

*all packets start with 2 letters that define the command

(all packets are terminated by 0x0A (aka \n).

Commands

command code syntax details
debugger ready rd rd tells the VM that the debugger is ready
step into si si
step return sr sr
step over so so
resume go go resumes execution
suspend sp sp suspends execution
terminate tr tr terminates the debugged progam
add breakpoint ab ab:line:sourcepath the line is specidied as hexadecimal number
remove breakpoint rb rb:line:sourcepath the line is specidied as hexadecimal number
add watch aw aw:id:expression the id is specidied as hexadecimal number, the id is generated arbitrary by the debugger application
remove watch rw rw:id the id is specidied as hexadecimal number, the id is generated arbitrary by the debugger application

DEBUGGER <- VM

break
line line number
src source path
type step|breakpoint|error
error error message(optional)
objs contains the object table
o object
type object type (see type encoding)
ref object ref id
e object children field
kt key type
kv key value
vt value type
v value
calls callstack
call call in the call stack
fnc function name
src source path or NATIVE
line line number or -1 for NATIVE functions
l local variable
name variable name
type object type (see type encoding)
val object value
w watch expression result
id watch id
exp expression
status ok | failed
type object type (see type encoding)
val object value

TO BE CONTINUED

Not logged in. Log in

squirrel's community wiki

This is FlexWiki, an open source wiki engine.

Change Style

Recent Topics