VC++ project file generation

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,
I have a software with the source code for windows. It can't be compiled in
vc++ easily. Is it possible to set the break points in the source code using
vc++ or atleast create the project file to browse the source.
 
sparc said:
I have a software with the source code for windows. It can't be compiled
in
vc++ easily. Is it possible to set the break points in the source code
using
vc++ or atleast create the project file to browse the source.

To be honest I don't understand your question.

However, if you want to generate a breakpoint at runtime then insert a call
to DebugBreak() in your source. If your application has not installed an
exception handler then the default exception handler will try to make use of
a Just-In-Time (JIT) debugger. The JIT debugger is specified in the registry
key

HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\Current Version\AeDebug

VC++'s installation sets this key. You may need to set it by hand if
DebugBreak() does not work because your IDE does not set the key.

If the application you are trying to debug has set up an exception handler
it may try to discard the debug signal. In that case, you'd need to invoke
the default exception handling mechanism:

__try
{
DebugBreak();
}

__except( UnhandledExceptionFilter( GetExceptionInformation() ) )
{
}

Regards,
Will
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top