473,324 Members | 2,002 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,324 software developers and data experts.

Setting breakpoints in a mixed mode file?

When I set a break point in a file that has both managed C++ and
unmanaged C++ the debugger never sees the breakpoints in the managed
code. What can be done to get the debugger to "see" the breakpoints in
the managed code?

Sep 8 '08 #1
6 1961
>When I set a break point in a file that has both managed C++ and
>unmanaged C++ the debugger never sees the breakpoints in the managed
code. What can be done to get the debugger to "see" the breakpoints in
the managed code?
Have you enabled the mixed mode debugging option?

Dave
Sep 8 '08 #2
On Sep 8, 10:10*am, David Lowndes <Dav...@example.invalidwrote:
When I set a break point in a file that has both managed C++ and
unmanaged C++ the debugger never sees the breakpoints in the managed
code. What can be done to get the debugger to "see" the breakpoints in
the managed code?

Have you enabled the mixed mode debugging option?

Dave
I just tried that on the project (of hundreds of projects in a single
solution) that has the managed C++ code, and I got the hollow red dot,
indicating that the breakpoint will not be reached. I do know that the
line of code that the breakpoint is on, was reached because it prints
its output to a file. However the breakpoint itself is never tiggered.
Sep 8 '08 #3
On Sep 8, 10:10*am, David Lowndes <Dav...@example.invalidwrote:
When I set a break point in a file that has both managed C++ and
unmanaged C++ the debugger never sees the breakpoints in the managed
code. What can be done to get the debugger to "see" the breakpoints in
the managed code?

Have you enabled the mixed mode debugging option?

Dave
(This may be a duplicate message, Google Groups was having problems).
I tried this and the red dot indicating the breakpoint was hollow,
(meanig that it will not be triggered) even though I know that the
line of code was reached because it printed its output line to the
output file.
Sep 8 '08 #4
>Have you enabled the mixed mode debugging option?
>
I just tried that on the project (of hundreds of projects in a single
solution) that has the managed C++ code, and I got the hollow red dot,
indicating that the breakpoint will not be reached.
Peter,

I think you have to set it on the project that you're debugging, so if
they're not the same, that may be the issue.

To check if that is the issue, if you start the program outside the
debugger and then attach to that process, the attach process dialog
allows you to select what type of debugging you want to do.

Dave
Sep 8 '08 #5
On Sep 8, 3:50*pm, David Lowndes <Dav...@example.invalidwrote:
Have you enabled the mixed mode debugging option?
I just tried that on the project (of hundreds of projects in a single
solution) that has the managed C++ code, and I got the hollow red dot,
indicating that the breakpoint will not be reached.

Peter,

I think you have to set it on the project that you're debugging, so if
they're not the same, that may be the issue.

To check if that is the issue, if you start the program outside the
debugger and then attach to that process, the attach process dialog
allows you to select what type of debugging you want to do.

Dave
I don't know how to attach to a process. As it is the system is
already comprised of very many processess.
Sep 8 '08 #6
>I don't know how to attach to a process.

In visual studio, use the Tools, Attach to Process menu item.
In the Attach to Process dialog box, look at the "Attach To" controls
- they allow you to select the type of code (native, managed, script).
>As it is the system is already comprised of very many processess.
Select the process that is the one you want to debug. It's your
system!

Dave
Sep 9 '08 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: Edward Diener | last post by:
I received no answers about this the first time I posted, so I will try again. My inability to decipher an MSDN topic may find others who have the same inability and someone who can decipher and...
8
by: Bern McCarty | last post by:
Is it at all possible to leverage mixed-mode assemblies from AppDomains other than the default AppDomain? Is there any means at all of doing this? Mixed-mode is incredibly convenient, but if I...
8
by: Edward Diener | last post by:
By reuse, I mean a function in an assembly which is called in another assembly. By a mixed-mode function I mean a function whose signature has one or more CLR types and one or more non-CLR...
2
by: MSK | last post by:
Hi, Continued to my earlier post regaring "Breakpoints are not getting hit" , I have comeup with more input this time.. Kindly give me some idea. I am a newbie to .NET, recently I installed...
1
by: jeem | last post by:
I am using ActiveState Komodo 3.5 to work on a large python 2.4 application with an extensive UI... I am attempting to debug the application and am setting breakpoints in 4 different *.py files.....
0
by: emu | last post by:
Hi All, I have an unmanaged C++ application that references a mixed mode image DLL (mixed managed and unmanaged). Under .NET 1.1 we could trust the dll (the mixed mode dll) by running the...
5
by: Jerry Spence1 | last post by:
In VB6 you could set a breakpoint when a variable had changed value. I can't find this in VB2005. Is it there somewhere? -Jerry
0
by: PeteOlcott | last post by:
When I set a break point in a file that has both managed C++ and unmanaged C++ the debugger never sees the breakpoints in the managed code. What can be done to get the debugger to "see" the...
0
by: Peter Olcott | last post by:
In one function in a mostly .NET C++ DLL file single step mode does not work at all, (unless breakpoints are set) and then only half of the breakpoints are ever reached. Debugging seems to working...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.