Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 242
  • Last Modified:

Turning debugging on

Hi,

I've just downloaded a graphing utility written in C# and I'd like to start using it.  For me, that means setting breakpoints in the code to start getting comfortable with it.  But it may have not been compiled with debug information on, since an breakpoint I set has a questionmark inside the red dot.

Can anyone tell me how to change this?

Thanks in advance.

RA

0
ba272
Asked:
ba272
  • 10
  • 6
  • 3
  • +1
1 Solution
 
acharbonneauCommented:
From the Solution Explorer, right click on your project name.  Select properties, then select configuration properties from the list on the left.  Click on Configuration Manager and from there you will be allowed to toggle between modes (debug, release, etc...)
0
 
ba272Author Commented:
I tried this, but it still does not stop at the breakpoint.  I made sure the file got recompiled, but it still displayed the breakpoint with a questionmark at the enter.

Any more ideas?

Thanks.

Bob
0
 
Bob LearnedCommented:
Does the solution have more than 1 project?

Bob
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
ba272Author Commented:
yes
0
 
Bob LearnedCommented:
What is the active configuration (Build menu | Configuration manager)?  Did you set the Debug mode for all the projects?  Is there a .PDB in the \bin folder along with the .EXE?

Bob
0
 
ba272Author Commented:
I tried to set it for the other project, but it looks very different.  Thanks for the help, but I'm going to pursue a different library.

What is the PDB file for, anyway?  What does it do , do you know?

Thanks.

Bob
0
 
Bob LearnedCommented:
The .PDB has the debug information (line numbers, symbols, metadata, etc.).  Without this file, you will not be able to debug, and would indicate why you weren't able to insert breakpoints.

Bob
0
 
ba272Author Commented:
Well, I downloaded the project and could find neither the PDB, but I couldn't event find the EXE.  So I gave up looking.
0
 
Chester_M_RagelCommented:
If you still have intrest in using that, let me know from where you have downloaded that thing(link is better). I can check and let you know how to make that project as you want.
0
 
ba272Author Commented:
That's great!  It appears to be THE most fantastic graphing tool, ever.  And it's free.

The file is called "dotnetcharting.zip" and it can be downloaded at http://www.dotnetcharting.com/download.aspx

I was trying to set a breakpoint so I'd have some hope of being able to figure out how to incorporate the graphs into my work.

Thanks, for the help.

Bob

0
 
Chester_M_RagelCommented:
They are only giving you the dll which doesn't have debug information. So, you can't debug their dll. But you can debug the sample which they have given. But not the dll...
0
 
ba272Author Commented:
Yes, but the sample program has the source code, so I should be able to set a break point, shouldn't I?

0
 
Chester_M_RagelCommented:
You can, which sample you are using? I think they have only sample for web projects.. Can you run your project? Which sample you are trying to test?
0
 
ba272Author Commented:
CSharpWinCharts, which launches a program called ChartDirector.  I am running XP Pro.
0
 
Chester_M_RagelCommented:
I couldn't find that, where is that?
0
 
ba272Author Commented:
Actually, I just realized I'd been downloading various programs today.

try downloading "chartdir_net_win32.exe" at

http://www.programmersheaven.com/zone28/cat1010/27278.htm
0
 
Chester_M_RagelCommented:
What is the problem of debugging that? You can debug that without any problem.. Where you want to set the brakepoint? If you are not sure where to set the breakpoint first, go to ChartExplorer form,set the breakpoint in
Application.Run(new ChartExplorer()); and try.
0
 
ba272Author Commented:
I basically did that before with a function I knew was getting called.  I'd used toolBar_ButtonClick,
that didn't work.

And now doing as you say, with the breakpoint set inside Main(), again shows the breakpoint with a question mark inside.  There's something about the environment setting which isn't right.

Any idea what it could be?
0
 
Chester_M_RagelCommented:
I think I found the problem. They have both VB.NET and C# projects with the same solution. But the VB.NET one is the startup project. So it wont hit the breakpoint in C# one. Do like this,
Right click on C# project and make that as a startup project. Now it will hit the breakpoint.

Chester.
0
 
ba272Author Commented:
Excellent!

It works great.


Thanks,
Bob
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 10
  • 6
  • 3
  • +1
Tackle projects and never again get stuck behind a technical roadblock.
Join Now