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

Can you test for the debugger at runtime?

Hi, does anybody know if you can programmatically test within a VS
2005 VB.NET Windows app to see if the application is running in the
debugger? I have some extra controls on a Windows form that display
useful info when testing the app. I've set visible to false for these
controls for the user version. If I'm running the app in the debugger
I'd like to set visible to true for these debug controls in the form
load event handler.

Thanks,
John

Nov 14 '07 #1
3 970
Hi,

Try System.Diagnostics.Debugger.IsAttached

--
Patrice

"John Heitmuller." <jo*************@jrfcorp.neta écrit dans le message de
news: 11**********************@v65g2000hsc.googlegroups. com...
Hi, does anybody know if you can programmatically test within a VS
2005 VB.NET Windows app to see if the application is running in the
debugger? I have some extra controls on a Windows form that display
useful info when testing the app. I've set visible to false for these
controls for the user version. If I'm running the app in the debugger
I'd like to set visible to true for these debug controls in the form
load event handler.

Thanks,
John

Nov 14 '07 #2
"John Heitmuller." <jo*************@jrfcorp.netschrieb
Hi, does anybody know if you can programmatically test within a VS
2005 VB.NET Windows app to see if the application is running in the
debugger? I have some extra controls on a Windows form that display
useful info when testing the app. I've set visible to false for
these controls for the user version. If I'm running the app in the
debugger I'd like to set visible to true for these debug controls in
the form load event handler.
Debugger.IsAttached
Armin
Nov 14 '07 #3
Thanks Armin and Patrice. That did just what I wanted.

Nov 14 '07 #4

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

Similar topics

0
by: shesh | last post by:
I would like to debug the code in a c# dll by launching the debugger at runtime using System.Diagnostics.Debugger.Launch(). 1. Is it possible to specify the path for the source files before/after...
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...
0
by: Dana Robinson | last post by:
I have an application written in C# using Windows Forms that has some crashing issues. Unfortunately, I've been unable to get the JIT debugger to work so I'm completely in the dark. I have it...
0
by: Jim Heavey | last post by:
Hello, I'm having a problem with running the Debugger on Windows 2000 Pro workstation. The help says that there are version of windows in which the debugger is not automatically attached, but it...
10
by: universalbitmapper | last post by:
Hi, I'm trying a simple form.html that call a .html script that begins with: <?php header("This is a test"); ?> When I click on the link, I get blank page.
1
by: SteveT | last post by:
I've written a small library that contains external XML files that will be read by the DLL during program execution. I want to use the "Test View" features of VS2005 to debug the reading of the...
0
by: Arpan | last post by:
What is the use of the CLR Debugger (that comes with the .NET Framework SDK) when the same debugging can be done using the debugger feature in Visual Web Developer 2005 Express Edition? The...
0
by: Martin | last post by:
In server-side code of Page1.aspx, in the click eventhandler for an imagebutton, I branch to another page: Response.Redirect("Page2.aspx") But the client-side javascript on Page2.aspx is...
0
by: ajb123 | last post by:
I am encountering an R6025 ("No object has been instantiated to handle the pure virtual function call") error in a complex application. The error is intermittent and it is time consuming to...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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,...
0
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...
0
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...
0
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 project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...

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.