how to debug a dll containing a com object instantiated by a jscript called from a batch file



Hi all,
this is my problem:

I need to debug a dll containing the implementation of a COM
object written in C++, I have the source for that dll.

The COM object is created by a jscript file like the following:
--------------------------------------------------
// test.js
var o = new ActiveXObject("myLib.myObjectProgID");
--------------------------------------------------

the jscript is called from a batch file like the following:
----------------
rem test.cmd
cscript test.js
----------------

I have Microsoft Development Environment 2003 Version 7.1.3088
where I load the solution (.sln) containing the project (.vcproj)
of my dll and I set my breakpoints.

I tryed various
Configuration Properties - Debugging - Command/Command Arguments
combinations like

Command=c:\windows\system32\cmd.exe
Command Arguments=/c test.cmd

or like

Command=c:\windows\system32\cmd.exe /c
Command Arguments=test.cmd

but starting the debugger has no effect and my breakpoints aren't hit.
Any suggestion?

Please apologize me if this is not the right ng for my question and in
that
case please suggest me the more suitable.

thanks in advance.
Best regards,
Alessandro.

.



Relevant Pages

  • Re: breakpoints dont work any more!
    ... > breakpoints are disabled too. ... Make sure the executable is built with debug information. ... Start debugging, and check that the executable is loaded from the expected location ... If you are debugging a .DLL file, insert DebugBreakor "__asm int 3" statements ...
    (microsoft.public.vc.debugger)
  • Re: Passing parameters to a Com DLL
    ... I am still having problems getting the 'break' during debugging. ... built the dll in debug mode and it is registered. ... I changed them all to Variant ... Set Command to the full path of VB ...
    (microsoft.public.vc.atl)
  • Re: LogonUser / CreateProcessAsUser - Behaves differently from different calling applications
    ... >CreateProcessAsUser to execute the command. ... Calling the DLL from another win32 ... > * This object maintains data for the Authentication and Process ...
    (microsoft.public.win32.programmer.kernel)
  • Re: Calling Legacy C function from Managed C++
    ... If I make the DLL ... an Application, with the simulation model passed in the command line, ... passed to other functions called within OPNET ESA API. ... Esa_Init (argc, argv, options, esa_state_pptr) ...
    (microsoft.public.dotnet.languages.vc)
  • Re: Error Signature
    ... Quote ... use the following command syntax: ... command 'regsvr32 /u GAMsys.dll' without quotes. ... >This DLL adds into Internet Explorer as a Browser Helper ...
    (microsoft.public.windows.inetexplorer.ie6.browser)

Loading