Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Display a "Debug" button?

Display a "Debug" button?

Scheduled Pinned Locked Moved C#
debugginghelpquestion
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • F Offline
    F Offline
    FocusedWolf
    wrote on last edited by
    #1

    i made a error reporter and i want to display a "Debug" button on my form... I want to only show this button if theirs a debugger installed... basically i want to display the Just-In-Time debugger window. Anyway to do this? :-D

    E L 2 Replies Last reply
    0
    • F FocusedWolf

      i made a error reporter and i want to display a "Debug" button on my form... I want to only show this button if theirs a debugger installed... basically i want to display the Just-In-Time debugger window. Anyway to do this? :-D

      E Offline
      E Offline
      Ennis Ray Lynch Jr
      wrote on last edited by
      #2

      There is a precompiler option #if DEBUG that could work for you. Otherwise a series of if-statements is the only choice.

      Need a C# Consultant? I'm available.
      Happiness in intelligent people is the rarest thing I know. -- Ernest Hemingway

      1 Reply Last reply
      0
      • F FocusedWolf

        i made a error reporter and i want to display a "Debug" button on my form... I want to only show this button if theirs a debugger installed... basically i want to display the Just-In-Time debugger window. Anyway to do this? :-D

        L Offline
        L Offline
        leppie
        wrote on last edited by
        #3

        FocusedWolf wrote:

        I want to only show this button if theirs a debugger installed...

        Look at the Debugger class, specifically IsAttached, Attach() and Break().

        xacc.ide - now with TabsToSpaces support
        IronScheme - 1.0 alpha 4 out now (27 May 2008)

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups