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
  • 相关阅读:
    Chrome开发者工具详解(1)
    Chrome开发者工具详解(2)
    Ubuntu ADSL拨号上网
    Bash中单引号和双引号的区别
    建立菜单
    波浪号和Hyphen扩展
    标准IO和重定向
    Bash变量扩展修改符
    mysql主键约束和唯一性约束
    Here文档
  • 原文地址:https://www.cnblogs.com/xiaxi/p/1947739.html
Copyright © 2011-2022 走看看