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

ba272Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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
Cloud Class® Course: Microsoft Windows 7 Basic

This introductory course to Windows 7 environment will teach you about working with the Windows operating system. You will learn about basic functions including start menu; the desktop; managing files, folders, and libraries.

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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
ba272Author Commented:
Excellent!

It works great.


Thanks,
Bob
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
C#

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.