zoukankan      html  css  js  c++  java
  • Lauch Debugger automatically when start the process

    通常我们在debug的时候一般都是启动程序后在visual studio里点击Attach Process。但是有些时候我们需要在程序启动的时候就开始debug,所以这个时候我们需要做一些设置,让visual studio从一开始就attach到我们的程序上。


    To setup an application to launch the debugger automatically

    1. 打开注册表.
    2. 打开 HKEY_LOCAL_MACHINE .
    3. 找到 HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\currentversion\image file execution options.
    4. 在注册表键 Image File Execution Options 下,找到你的进程的名字 (比如myapp.exe). 如果下面没有,就自己创建一个:
      1. 右击 Image File Execution Options,选择New Key .
      2. 右击新创建的key,选择 Rename .
      3. 编辑成你的进程名字,比如 myapp.exe.
    5. 右击myapp.exe, 选择 New String Value .
    6. 重命名为debugger.
    7. 将该key value设置为devenv /debugexe
    http://msdn.microsoft.com/en-us/library/a329t4ed%28VS.71%29.aspx
  • 相关阅读:
    Python正课132 —— Vue 进阶5
    Python正课131 —— Vue 进阶4
    Python正课130 —— Vue 进阶3
    logging模块
    作业20
    suprocess模块
    configparser模块
    hashlib模块
    shutil模块
    序列化模块
  • 原文地址:https://www.cnblogs.com/xiaxi/p/1947739.html
Copyright © 2011-2022 走看看