can't debug!

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Lord Zoltar

    can't debug!

    I finally got around to taking VS 2008 beta for a test spin, and I
    can't debug! I add a breakpoint to any line in my application, and
    when I hit "Debug", my program starts, and then immediately ends,
    skipping the breakpoint. It's probably a config setting somewhere, but
    I've never seen anything like this before. I've been looking for hours
    but can't seem to find any way to fix it.
    Anyone got a suggestion?
  • RobinS

    #2
    Re: can't debug!

    Make sure your build configuration is set to Debug instead of Release.

    RobinS.
    --------------------------
    "Lord Zoltar" <lord.zoltar@gm ail.comwrote in message
    news:bbbe9bb8-7098-483b-adde-cce1f22f381c@q7 8g2000hsh.googl egroups.com...
    >I finally got around to taking VS 2008 beta for a test spin, and I
    can't debug! I add a breakpoint to any line in my application, and
    when I hit "Debug", my program starts, and then immediately ends,
    skipping the breakpoint. It's probably a config setting somewhere, but
    I've never seen anything like this before. I've been looking for hours
    but can't seem to find any way to fix it.
    Anyone got a suggestion?

    Comment

    • =?Utf-8?B?TW9ydGVuIFdlbm5ldmlrIFtDIyBNVlBd?=

      #3
      RE: can't debug!

      If you are using 64 bit XP or Vista, breakpoints won't work unless you
      compile the program for x86 CPU (don't ask me why, but this goes for
      Edit-And-Continue as well.) Use the Configuration Manager in the solutions
      properties to change targetted CPU.

      --
      Happy Coding!
      Morten Wennevik [C# MVP]


      "Lord Zoltar" wrote:
      I finally got around to taking VS 2008 beta for a test spin, and I
      can't debug! I add a breakpoint to any line in my application, and
      when I hit "Debug", my program starts, and then immediately ends,
      skipping the breakpoint. It's probably a config setting somewhere, but
      I've never seen anything like this before. I've been looking for hours
      but can't seem to find any way to fix it.
      Anyone got a suggestion?
      >

      Comment

      • Lord Zoltar

        #4
        Re: can't debug!

        On Feb 18, 12:27 pm, Morten Wennevik [C# MVP]
        <MortenWenne... @hotmail.comwro te:
        If you are using 64 bit XP or Vista, breakpoints won't work unless you
        compile the program for x86 CPU (don't ask me why, but this goes for
        Edit-And-Continue as well.) Use the Configuration Manager in the solutions
        properties to change targetted CPU.
        >
        No, it was regular 32-bit XP. I had the build set to Debug. It would
        happen with even the simplest of all "Hello World!" forms
        applications.
        But I've been out of the loop for a while, as I had no idea that VS
        2008 was out now, past beta. I guess I'll have to download the trial
        version or express edition and see if that solves the problem.

        Comment

        • Lord Zoltar

          #5
          Re: can't debug!

          On Feb 19, 12:35 pm, Lord Zoltar <lord.zol...@gm ail.comwrote:
          On Feb 18, 12:27 pm, Morten Wennevik [C# MVP]
          >
          <MortenWenne... @hotmail.comwro te:
          If you are using 64 bit XP or Vista, breakpoints won't work unless you
          compile the program for x86 CPU (don't ask me why, but this goes for
          Edit-And-Continue as well.) Use the Configuration Manager in the solutions
          properties to change targetted CPU.
          >
          No, it was regular 32-bit XP. I had the build set to Debug. It would
          happen with even the simplest of all "Hello World!" forms
          applications.
          But I've been out of the loop for a while, as I had no idea that VS
          2008 was out now, past beta. I guess I'll have to download the trial
          version or express edition and see if that solves the problem.

          So I got around to installing C# express and I am still having the
          same problem: I create a new windows Form app, and add a breakpoint to
          the InitializeCompo nent() line and when I run the debugger, it breaks
          at that line. When I hit resume, the app end. When I don't have the
          breakpoint, the application doesn' teven run.
          Any ideas why this is happening?

          Comment

          Working...