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 / C++ / MFC
  4. two projects in 1 solution

two projects in 1 solution

Scheduled Pinned Locked Moved C / C++ / MFC
csharpdebuggingquestion
2 Posts 2 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.
  • L Offline
    L Offline
    LeeeNN
    wrote on last edited by
    #1

    in VC.net, I have a windows application( say project A) "call" another application ( say project B) using CreateProcess(....) approach to run a exe file generated in project B. A is startup project. It's OK to set breakpoint in the files of project A. but it's not OK to set breakpoint in file of project B. I know is project B generate DLL, then it's fine to set breakpoint in file of Project B. Is there anyone have this experience? :confused::rose:

    F 1 Reply Last reply
    0
    • L LeeeNN

      in VC.net, I have a windows application( say project A) "call" another application ( say project B) using CreateProcess(....) approach to run a exe file generated in project B. A is startup project. It's OK to set breakpoint in the files of project A. but it's not OK to set breakpoint in file of project B. I know is project B generate DLL, then it's fine to set breakpoint in file of Project B. Is there anyone have this experience? :confused::rose:

      F Offline
      F Offline
      FlamTaps
      wrote on last edited by
      #2

      The VS Debugger must "attach" to a process to debug it (hit breakpoints, etc.). Since Project B is launched via CreateProcess() and NOT from the debugger, so the debugger has no association be Project B and the executeable created with CreateProcess(). What you need to do is set a breakpoint right after CreateProcess(). Then, in another instance of VS, open the solution file, and goto "Debug"->"Processes". Select the recently launched executable and click "Attach".

      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