473,326 Members | 2,048 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,326 software developers and data experts.

Debugger Don't Work With Component In Design Mode

Tom
I have a component I'm writing. It appears that the debugger simply
doesn't work when in design mode. For example:

build the component
drop the component on a form
break points in the "New" sub don't fire
change a property
break points in the property don't fire

I've resorted to writing text out to a file to debug it. Reminds me of
mainframe Cobol debugging. The component is in the same project as the
form. This particular component inherits from the TextBox.

What am I missing?

Tom
Nov 21 '05 #1
5 1693
Come on. You can't debug anything in Design Mode. Any debugging must be under
runtime.
Nov 21 '05 #2
Tom
I'm just used to the VB6 debugger. When working with a user control you
can debug design time code. By that I mean set a break point on a
Property Let then go to your test form and change that property. The
debugger stops you on that line.

Tom

Rulin Hong wrote:
Come on. You can't debug anything in Design Mode. Any debugging must be under
runtime.

Nov 21 '05 #3
Like you I miss the old VB6 way of debugging a visual component. It just
seemed to work quite naturally.

You CAN achieve what you need to do but it's a bit messy.

What you will need to do is start up another instance of Visual Studio with
the project of your component loaded. Then go to the Debug\Processes menu
and attach the debugger to the other instance of DevEnv.exe. It's a bit
slow (as all the communication is all cross-process) but it worked OK for
the very small project I was working on :-)

Hope this helps,

Nick Hall

"Tom" <no*****@nowhere.none> wrote in message
news:On**************@TK2MSFTNGP11.phx.gbl...
I'm just used to the VB6 debugger. When working with a user control you
can debug design time code. By that I mean set a break point on a Property
Let then go to your test form and change that property. The debugger stops
you on that line.

Tom

Rulin Hong wrote:
Come on. You can't debug anything in Design Mode. Any debugging must be
under runtime.

Nov 21 '05 #4
Tom
Cool Cool Cool. Thanks Nick. We've been struggling with debugging some
controls for weeks now. This is great.

Tom
Nick Hall wrote:
Like you I miss the old VB6 way of debugging a visual component. It just
seemed to work quite naturally.

You CAN achieve what you need to do but it's a bit messy.

What you will need to do is start up another instance of Visual Studio with
the project of your component loaded. Then go to the Debug\Processes menu
and attach the debugger to the other instance of DevEnv.exe. It's a bit
slow (as all the communication is all cross-process) but it worked OK for
the very small project I was working on :-)

Hope this helps,

Nick Hall

"Tom" <no*****@nowhere.none> wrote in message
news:On**************@TK2MSFTNGP11.phx.gbl...
I'm just used to the VB6 debugger. When working with a user control you
can debug design time code. By that I mean set a break point on a Property
Let then go to your test form and change that property. The debugger stops
you on that line.

Tom

Rulin Hong wrote:

Come on. You can't debug anything in Design Mode. Any debugging must be
under runtime.


Nov 21 '05 #5
Tom
Oops. Spoke too soon. When I try to stop on certain lines the debugger
won't. It also appears to be highlighting lines as though it were
working off of another version of the source. How do I get it to use the
source I see in front of me.

Tom

Nick Hall wrote:
Like you I miss the old VB6 way of debugging a visual component. It just
seemed to work quite naturally.

You CAN achieve what you need to do but it's a bit messy.

What you will need to do is start up another instance of Visual Studio with
the project of your component loaded. Then go to the Debug\Processes menu
and attach the debugger to the other instance of DevEnv.exe. It's a bit
slow (as all the communication is all cross-process) but it worked OK for
the very small project I was working on :-)

Hope this helps,

Nick Hall

"Tom" <no*****@nowhere.none> wrote in message
news:On**************@TK2MSFTNGP11.phx.gbl...
I'm just used to the VB6 debugger. When working with a user control you
can debug design time code. By that I mean set a break point on a Property
Let then go to your test form and change that property. The debugger stops
you on that line.

Tom

Rulin Hong wrote:

Come on. You can't debug anything in Design Mode. Any debugging must be
under runtime.


Nov 21 '05 #6

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

Similar topics

8
by: Jon Perez | last post by:
(sorry for the duplicate post, just wanted to make the subject line clearer) How do you set up pdb such that you will automatically get dropped into its prompt if an unanticipated exception...
8
by: baustin75 | last post by:
Posted: Mon Oct 03, 2005 1:41 pm Post subject: cannot mail() in ie only when debugging in php designer 2005 -------------------------------------------------------------------------------- ...
8
by: Rob S | last post by:
I have UDB 8.1 Personal Edition installed. I'm using Development centre to develop JAVA Stored Procedues. I am unable to debug them. I have installed IBM Distributed Debugger and have set...
1
by: Etienne Charland | last post by:
I have Visual Studio.NET 2003. When I run a C# program, go in debugging mode, select an expression and press Shift+F9, the QuickWatch window shows up. However, half of the time, it says "error:...
1
by: Bill Menees | last post by:
VS.NET 2003 defaults the "Debugger Type" property to "Auto" for Visual C++ projects. Unfortunately, the "Auto" type isn't very smart. "Auto" bases the debugger type on the launched EXE's type,...
0
by: David | last post by:
Hello I have made a component (MyWebForm) that inherits Page. This component have a method called 'ComponentAdded' that shows a msgbox if it is in design mode: Public Class MyWebForm Inherits...
0
by: Tequila | last post by:
Here’s the description I’d launched Visual Studio and started to write an application After some time of coding, I wanted to test it. I pressed F5 hopin to run application for debugging. I...
2
by: Martin Arvidsson | last post by:
Hi! I have developed a component that creates a lookup for selecting values. At designtime i want to display the windows as well but with certain criterias. is there a property or something to...
0
by: mpathfinder | last post by:
hi guys . sorry for my weak Eng. writing . I want to design a component that in one of it's properties i'd able to collect list of controls of the windows form that hosts this component in a...
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: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
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: 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.