www.digitalmars.com Home | Search | C & C++ | D | DMDScript | News Groups | index | prev | next
Archives

D Programming
D
D.gnu
digitalmars.D
digitalmars.D.bugs
digitalmars.D.dtl
digitalmars.D.dwt
digitalmars.D.announce
digitalmars.D.learn
digitalmars.D.debugger

C/C++ Programming
c++
c++.announce
c++.atl
c++.beta
c++.chat
c++.command-line
c++.dos
c++.dos.16-bits
c++.dos.32-bits
c++.idde
c++.mfc
c++.rtl
c++.stl
c++.stl.hp
c++.stl.port
c++.stl.sgi
c++.stlsoft
c++.windows
c++.windows.16-bits
c++.windows.32-bits
c++.wxwindows

digitalmars.empire
digitalmars.DMDScript

c++ - CLI to the scw32.exe debugger?

↑ ↓ ← Scott Michel <scottm cs.ucla.edu> writes:
Is there a command line interface to the scw32.exe debugger? I'm trying to
track down a bug in a DLL I've created that's loaded by java; there's an
access violation in a method that starts with _ti (typeinfo function?). I'm
trying to generate a decent stack traceback.

Are there any decent debuggers that would allow me to do this, besides
Cygwin/MinGW gdb?

My basic requirements are:
a) I need to work from a specific directory
b) Set breakpoints in the DLL
c) Specify the command line to the program
d) Work within a self-funded graduate student's budget


-scooter
Feb 04 2004
↑ ↓ → Scott Michel <scottm mordred.cs.ucla.edu> writes:
Never mind... sometimes it helps to experiment a bit with the tools.

Answering my own questions and other helpful debugging hints:

- scw32 can be used as a standalone debugger. It's a pretty decent
  debugging environment even without a project file active.

- Use the Debug>Settings options to set the current directory

- Use Project>Arguments to set the executable's arguments.

- Set the Debug>Settings>Debug application startup box so that you can
  initially set your program's breakpoints, you can't set breakpoints
  w/o a Win32 process active. However, breakpoints will reinstated each
  time you execute the program.

- Be careful with '-gf' when you have lots of source files (like I do)
  because you can easily exceed the OPTLINK 64K debugging entry limit.


-scooter

Scott Michel <scottm cs.ucla.edu> wrote:
 Is there a command line interface to the scw32.exe debugger? I'm trying to
 track down a bug in a DLL I've created that's loaded by java; there's an
 access violation in a method that starts with _ti (typeinfo function?). I'm
 trying to generate a decent stack traceback.
 
 Are there any decent debuggers that would allow me to do this, besides
 Cygwin/MinGW gdb?
 
 My basic requirements are:
 a) I need to work from a specific directory
 b) Set breakpoints in the DLL
 c) Specify the command line to the program
 d) Work within a self-funded graduate student's budget
 
 
 -scooter

Feb 05 2004