473,657 Members | 2,445 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1710
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*****@nowher e.none> wrote in message
news:On******** ******@TK2MSFTN GP11.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*****@nowher e.none> wrote in message
news:On******** ******@TK2MSFTN GP11.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*****@nowher e.none> wrote in message
news:On******** ******@TK2MSFTN GP11.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
1632
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 occurs in a script you are using? ASPN Python cookbook gives you the following method which you can add to your script and hook into sys.excepthook. But is there a way to do it without adding stuff to your
8
5463
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 -------------------------------------------------------------------------------- Hello, I have a very simple problem but cannot seem to figure it out. I have a very simple php script that sends a test email to myself. When I debug it in PHP designer, it works with no problems, I get the test email. If
8
3640
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 DB2ROUTINE_DEBUG=ON. I installed Distributed Debugger after UDB. The Procs will build with debug but no debugger window appears when run in debug mode. I followed the instructions that came with Debugger regarding the installation directory etc.
1
1441
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: '...' doesn't exist." For example, I just ran a program, paused where an exception occured and made a QuickWatch on this: ad.Update(table) error: 'ad.Update' does not exist (where ad is a SqlDataAdapter) this kind of debugging...
1
1635
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, which may have nothing to do with the C++ project I'm trying to debug. I have a .NET EXE that hosts all of my DLLs, but a lot of the DLLs are old, unmanaged C++ COM DLLs. Now everytime I debug one of them, I have to remember to change the...
0
980
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 System.Web.UI.Page Public Sub ComponentAdded() If ((Not Me.Site Is Nothing) AndAlso (Me.Site.DesignMode)) Then
0
281
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 was expecting my app to start. It didn’t happen The screen blinked, became black and after a few seconds returned “normal” picture whole VS IDE become frozen and looked that is still in design mod with the hourglass as cursor icon. After...
2
1494
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 look at that tells mee if its designtime or runtime? Regards Martin
0
1111
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 drop down form . for example when i add this component to a windows from which contains a TextBox and a Lable it shows their's name in a list in drop down format that i can select one of them in design mode . clear example of my question is the...
0
8395
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, well explore What is ONU, What Is Router, ONU & Routers main usage, and What is the difference between ONU and Router. Lets take a closer look ! Part I. Meaning of...
0
8310
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8732
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8605
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7330
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development projectplanning, coding, testing, and deploymentwithout human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5632
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4306
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2726
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1615
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.