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
  • 相关阅读:
    JVM运行参数
    JVM学习
    自己瞎写的小项目随笔
    git入门
    @ResponseBody 注释
    jquery 正则表达式 验证邮箱 手机号 座机号 身份证
    ORACLE计算一年的12个月份
    css 图片 文字居中
    Jquery 取值相关
    标题栏下拉菜单
  • 原文地址:https://www.cnblogs.com/xiaxi/p/1947739.html
Copyright © 2011-2022 走看看