Cannot break my code.

Hi Experts,

I do not require any assistance with my code. In this question i need to know how to break it.

I have run into a problem where if I run my application in vb.net, it wont break when it comes to a breakpoint. It just keeps on going. Also sometimes when i have broken it by using the break tool button a message box appears saying "no source code avaliable".

I am new to vb.net and cant understand why this would be happening,

Cheers,

Tom
LVL 3
TommyTwoPintsAsked:
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.

NowaYCommented:
If you are using Visual Studio then you need to make sure it's set to "Debug" rather than "Release". Look in the configuration manager under "Build" up top.
NowaYCommented:
Just to clarify. When you are in "Release" mode then it doesn't stop for breaks. You need to be in "Debug" mode.
TommyTwoPintsAuthor Commented:
Thats what it has always been set to.

Any other ideas?
Amazon Web Services

Are you thinking about creating an Amazon Web Services account for your business? Not sure where to start? In this course you’ll get an overview of the history of AWS and take a tour of their user interface.

planoczCommented:
Your logic is off when the app is trying to run.
it starts in  New and goes to the next event. If the order is confusing the debugger can't stop on any code.
You say you are new to vb.net.
One thing you might want to do is compare your code to a micro$oft code here are some samples...

.....http://msdn.microsoft.com/vbasic/downloads/samples/101samples.aspx

Link for ASP programs...

http://msdn.microsoft.com/asp.net/downloads/kits/default.aspx 

It might help in trouble shooting your code.

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
Bob LearnedCommented:
What are you trying to debug?  ASP.NET or WinForms?  A form, within the InitializeComponent method?

Bob
TommyTwoPintsAuthor Commented:
Bob,

I imported the system.io and im trying to move files from one directory to another.

It works in other routines but in oine particular routine it isnt.

I just want to be able to step through the code and see what was going on, I guess i can look at values by putting message boxes in displaying the values for me as i go throught the code. This problem never arose in any version of visual basic i have used.

Cheers,

Tom
Bob LearnedCommented:
Debugging is a lot more powerful now, but this power brings many more opportunities for failure.

Can you describe the setup that you have for your application?

Bob
"Bigger Picture Guy"

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
Visual Basic.NET

From novice to tech pro — start learning today.