分享

Invoking Dr. Memory from the Command Line

 qiuchf 2016-03-14

Invoking Dr. Memory from the Command Line

Run your application as you normally would from a command prompt (on Windows, either the cmd shell or a Cygwin prompt), with drmemory and "--" prefixed to the command line (the "--" separates any arguments to Dr. Memory from the application being run).

On Windows:

drmemory.exe -- c:/path/to/my/app args to my app

On Linux, Mac, or Android:

drmemory -- /path/to/my/app args to my app

Examples throughout the rest of the documentation will use just one platform, but can readily be adapted to the other by changing the front-end (drmemory.exe or drmemory) and the path style.

If as part of Installing Dr. Memory you did not add Dr. Memory to your path, you'll need to specify the full path to Dr. Memory.

On Windows, you can also drag-and-drop your application onto drmemory.exe in Windows Explorer or on the Desktop if you requested a Desktop shorcut upon installation.

When running scripts it is best to explicitly invoke the interpreter rather than invoking the script directly. For example:

drmemory -- /usr/bin/perl ./myscript.pl

    本站是提供个人知识管理的网络存储空间,所有内容均由用户发布,不代表本站观点。请注意甄别内容中的联系方式、诱导购买等信息,谨防诈骗。如发现有害或侵权内容,请点击一键举报。
    转藏 分享 献花(0

    0条评论

    发表

    请遵守用户 评论公约

    类似文章 更多