Cancel
Showing results for 
Search instead for 
Did you mean: 

Debugging: Breakpoint will not be hit

Creator
Creator

Dear Tecnomatix Developers,

 

I currently have a problem with the debugging.

It always says: "The breakpoint will not currently be hit. No symbols have been loaded for this document"

The funny thing is that it worked well last week.

I'm using VS2017 Community Version and PS13.1. Also I'm starting VS as other user to recieve admin rights in order to copy the output (1 .dll + 1 .pdb) into the DotNetCommands folder.

Please find attached my Project Properties.

 

After I click on start in VS it seems like that two Tune.exe processes start (see picture of AttachToProcess-Window in attachments).

When I stop debugging one of the Tune.exe processes terminates. But the other one is still running. Now I could attach to this runningTune.exe process (Ctrl+Alt+P) and it would stop at the breakpoints, but this method is quit annoying and I can't use the QuickWatch.

 

Does anyone has a hint or suggestions for me?

 

Thanks!

18 REPLIES

Re: Debugging: Breakpoint will not be hit

Pioneer
Pioneer

sometimes the tune.exe does not exit properly.

Process Simulate is closed, but a tune.exe is still running.

If you try do compile and debug, your *.dll can not be overwritten, because it's still used

by the running tune.exe

 

check the output window to see if your build is successfully.

If not, check that no tune.exe is running while compiling.

 

 

Re: Debugging: Breakpoint will not be hit

Creator
Creator

My build succeeds.
And the functionality provided by the dll is also working well.
Only the debugging is not working Smiley Sad

 

I realised that when I start PS through the debugger, no modules are loaded.
When I stop the debugger, the PS-Process is still running. So I can attach to this process again. This way I can see that a lot of modules including my dll are loaded.

 

What happens when you start the debugger?

How many processes can you see in the AttachToProcess-Window (Ctrl+Alt+P) and how many modules can you see in the Modules-Tab (Debug->Windows->Modules)?

Re: Debugging: Breakpoint will not be hit

Pioneer
Pioneer
I think you are confused by the attachtoprocess funcitonality.

You don't need that, since you are starting PS by the Debug-start actions and options. This will bring PS into the debug mode and it will "report" any information to VS.

The AttachToProcess is only needed for an postdownloader or uploader. In this case you will need to compile an executable. This executable will be called by PS as a usual program. To debug that you need to attach VS to that process.
But i think thats not the case in here.

Re: Debugging: Breakpoint will not be hit

Pioneer
Pioneer
just a stupid question and just to make sure everything is setup correctly,
but did you registered your public classes in your dll via the commandReg.exe?

you'll need to do that before starting PS. Otherwise your functions will not be abailable in PS

Re: Debugging: Breakpoint will not be hit

Creator
Creator
Yes, I registered my public classes.
And there are no stupid questions Smiley Wink

Re: Debugging: Breakpoint will not be hit

Siemens Legend Siemens Legend
Siemens Legend
Not sure why 2 tune processes start. In any case please change the following in your project settings debug tab:
Start External Program: Tune.exe

Working Directory:
"C:\Program Files\Tecnomatix_13.1\eMPower"

Might be no modules are found because they are looked only under your current project folder.

Re: Debugging: Breakpoint will not be hit

Creator
Creator

When I change Start External Program to Tune.exe and the Working Directory to "C:\Program Files\Tecnomatix_13.1\eMPower" I get the warning that the external program cannot be found.

 

If I still click on start an error message appears.

It says that the debug target Tune.exe is missing, but it's definitly in the C:\Program Files\Tecnomatix_13.1\eMPower-Folder.

 

Please find attached the warning and error message.

Re: Debugging: Breakpoint will not be hit

Siemens Legend Siemens Legend
Siemens Legend

Please send a screenshot of your Project Properties-->Debug tab.

 

Thanks

Re: Debugging: Breakpoint will not be hit

Creator
Creator

Sure. Attached the Debug tab of my Project Properties.