Code Monkey home page Code Monkey logo

dbg.vim's Introduction

dbg.vim

A wrapper debugger to control command line debuggers from vim.

Supported debuggers:

  • mdbg: .Net
  • cdb: Windows C++
  • gdb: GNU Debugger
  • jdb: Java debugger
  • fdb: Flex debugger

not support pdb now

!!cdb is a command-line debugger for windows.

!!mdbg is a command-line debugger for .Net Framework.

Requirements

  1. dbg.vim is requires vimproc and each debuggers.

  2. Through the path to each debugger or define the vimrc as follows.

    let g:dbg#command_shell = 'cmd.exe' let g:dbg#shell_prompt = '> '

    let g:dbg#command_cdb = 'cdb.exe' let g:dbg#command_mdbg= 'C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\NETFX 4.0 Tools\mdbg.exe' let g:dbg#command_jdb = 'jdb' let g:dbg#command_gdb = 'gdb' let g:dbg#command_fdb = 'fdb' !! let g:dbg#command_python = 'python' !! now not support pdb.

Usage

shell

  1. start shell as follow.

    :DbgShell or :Dbg shell

cdb

  1. start debugger as follow.

    :Dbg cdb exe-file-path

  2. set first breakpoint.

    bp main or

    bp WinMain or

    bp wWinMain or

  3. run the program.

    g or Press in command mode.

mdbg

  1. start debugger as follow.

    :Dbg mdbg exe-file-path

  2. run the program.

    run

gdb

  1. start debugger as follow

    :Dbg gdb out-file-path

  2. set first breakpoint.

    break sorce:line or Press on the break line in command mode.

  3. run the program.

    run or Press in command mode.

jdb

  1. start debugger as follow

    :Dbg jdb Main-Class-Name And input source-code-base-directory.

  2. set first breakpoint.

    stop in Class.main or Press on the break line in command mode.

  3. run the program.

    run or Press in command mode.

fdb

  1. start debugger as follow

    :Dbg fdb swf-file-path And input source-code-base-directory.

  2. set first breakpoint.

    break method or break file:line or Press on the break line in command mode.

  3. continue the program.

    continue or Press in command mode.

gdb mode###

gdb mode is a input method like a gdb.

  1. start debugger.

  2. input gdb command with atmark.

    @run

    @next

    @step

    @continue

    @finish

    @print xxx

    @info bt

    @info locals

    @info threads

    @info where

    @info backtrace

    @info quit

It is also possible shorthand.

> @n

> @p

... etc

Default Keymaps

  • <F2> Print variable under the cursor.
  • <F5> Continue the program.
  • <F6> Show locals variable.
  • <F7> Show threads variable.
  • <F8> Show callstack.
  • <F9> Set breakpoints under the cursor.
  • <F10> Next
  • <F11> Step
  • <S-F11> stepout

ScreenShots

xxx

HISTORY

v0.3.0 by yuratomo

  • support shell-mode (win -> cmd.exe, other -> bash)
  • fix read-stdout

v0.2.0 by yuratomo

  • support mdbg (.Net Framework console debugger)

v0.1.0 by yuratomo

  • first release

dbg.vim's People

Contributors

yuratomo avatar albfan avatar mattn avatar bgianfo avatar

Watchers

James Cloos avatar Emeliov Dmitrii avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.