fagiano wrote:I guess the problem is that you have't set neither an iterpreter nor a Working Directory.
I haven't had the time to document this, but works pretty much like sqdev. I suggest you take a look a the wiki , there's a detailed explenation on how to use sqdev, this add-in works just like sqdev, so almost everything written there applies.
ciao
Alberto
It wants sqdbg.exe. Once you have that it works like a charm.
Its the same exact debugger that Eclipse uses.
I didn't see a pre-compiled build out there; for source: very basic steps:
1) have Visual C++ or eqiv.
2) download source (2.x or 3.x) make sure it compiles as vanilla
(Squirrel is one of the few products that compiles on the first shot, impressive)
4) download source for sqdbg for your version (2.x vs 3.x)
5) extract/add the enclosed project to original squirrel project
(note: for vc++ 2008 & sqdbg 2.x, the project won't convert,
download/add sqdbg3.x package, swap/diff the source files with 2.x)
7) compile - 3.0 no issues, 2.x one correction vs. sq2.2.2 (version L4D2 is using).
8) backup vanilla, add patches/personal libraries/etc (usual practice)
9) place sqdbg.exe (RELEASE) in an appropriate folder
10) under VStudio>project>projproperties:
Interpreter: full path to sqdbg.exe
Working Directory: full path to folder you want debugger to cd before exec (most likely folder w/ .nut files)
Suspend on Startup: true (if you actually want to debug/step through (breakpoints might have issues))
Command Line Options: .nut file to debug(relative path from Working Directory)
Something I have found more useful: use sq.exe under "external tools"
you can even get the vanilla build pre-compiled.
Tools>External Tools>Add:
Title: an appropriate title
Command: full path to your version of sq.exe -
Initial Directory: same as w/ Working Directory
Arguments: I use relativepath/$(ItemFileName)$(ItemExt)
Use Output Window: true
Treat Output as Unicode: false (if OS is 8bit charset)
Use that to run the file you have focused against sq.exe: console output is right in the output window.
Good for filtering out all the easy stuff, then just use the debugger for those times you need it.