2017-08-17 8 views
0

WindowsでZeroBraneを使用して、Linux上で自分のプログラムをリモートデバッグしました。
私のプログラムは、C++からluaを呼び出します。
ただし、ブレークポイントにヒットすることはできません。
私を助けることができますか?ありがとう。ZeroBraneリモートデバッグ

ZeroBraneの以下のように出力:

Debugger server started at AGOC3-706:8172. 
[192.168.88.238:47444] Debugger sent (command): basedir D:\WorkSpace\sichuan\branches\v1.0.1-2017-07-12\lua\ 
New base directory is D:/WorkSpace/sichuan/branches/v1.0.1-2017-07-12/lua/ 
[192.168.88.238:47444] Debugger received (file, line, err): nil nil nil 
[192.168.88.238:47444] Debugger sent (command): delallb 
[192.168.88.238:47444] Debugger received (file, line, err): nil nil nil 
[192.168.88.238:47444] Debugger sent (command): setb D:\WorkSpace\sichuan\branches\v1.0.1-2017-07-12\lua\hall2\hall.lua 1 
[192.168.88.238:47444] Debugger received (file, line, err): hall2/hall.lua 1 nil 
[192.168.88.238:47444] Debugger sent (command): setb D:\WorkSpace\sichuan\branches\v1.0.1-2017-07-12\lua\hall2\hall.lua 37 
[192.168.88.238:47444] Debugger received (file, line, err): hall2/hall.lua 37 nil 
[192.168.88.238:47444] Debugger sent (command): setb D:\WorkSpace\sichuan\branches\v1.0.1-2017-07-12\lua\hall2\hall.lua 305 
[192.168.88.238:47444] Debugger received (file, line, err): hall2/hall.lua 305 nil 
[192.168.88.238:47444] Debugger sent (command): setb D:\WorkSpace\sichuan\branches\v1.0.1-2017-07-12\lua\hall2\hall.lua 831 
[192.168.88.238:47444] Debugger received (file, line, err): hall2/hall.lua 831 nil 
[192.168.88.238:47444] Debugger sent (command): setb D:\WorkSpace\sichuan\branches\v1.0.1-2017-07-12\lua\hall2\hall.lua 1718 
[192.168.88.238:47444] Debugger received (file, line, err): hall2/hall.lua 1718 nil 
[192.168.88.238:47444] Debugger sent (command): setb D:\WorkSpace\sichuan\branches\v1.0.1-2017-07-12\lua\hall2\hall.lua 3441 
[192.168.88.238:47444] Debugger received (file, line, err): hall2/hall.lua 3441 nil 
[192.168.88.238:47444] Debugger sent (command): load D:\WorkSpace\sichuan\branches\v1.0.1-2017-07-12\lua\hall2\hall.lua 
[192.168.88.238:47444] Debugger received (file, line, err): lua/hall2/main.lua 2 nil 
[192.168.88.238:47444] Debugger sent (command): basedir D:\WorkSpace\sichuan\branches\v1.0.1-2017-07-12\lua\ lua/ 
New base directory is D:/WorkSpace/sichuan/branches/v1.0.1-2017-07-12/lua/ 
[192.168.88.238:47444] Debugger received (file, line, err): nil nil nil 
[192.168.88.238:47444] Debugger sent (command): delallb 
[192.168.88.238:47444] Debugger received (file, line, err): nil nil nil 
[192.168.88.238:47444] Debugger sent (command): setb D:\WorkSpace\sichuan\branches\v1.0.1-2017-07-12\lua\hall2\hall.lua 1 
[192.168.88.238:47444] Debugger received (file, line, err): hall2/hall.lua 1 nil 
[192.168.88.238:47444] Debugger sent (command): setb D:\WorkSpace\sichuan\branches\v1.0.1-2017-07-12\lua\hall2\hall.lua 37 
[192.168.88.238:47444] Debugger received (file, line, err): hall2/hall.lua 37 nil 
[192.168.88.238:47444] Debugger sent (command): setb D:\WorkSpace\sichuan\branches\v1.0.1-2017-07-12\lua\hall2\hall.lua 305 
[192.168.88.238:47444] Debugger received (file, line, err): hall2/hall.lua 305 nil 
[192.168.88.238:47444] Debugger sent (command): setb D:\WorkSpace\sichuan\branches\v1.0.1-2017-07-12\lua\hall2\hall.lua 831 
[192.168.88.238:47444] Debugger received (file, line, err): hall2/hall.lua 831 nil 
[192.168.88.238:47444] Debugger sent (command): setb D:\WorkSpace\sichuan\branches\v1.0.1-2017-07-12\lua\hall2\hall.lua 1718 
[192.168.88.238:47444] Debugger received (file, line, err): hall2/hall.lua 1718 nil 
[192.168.88.238:47444] Debugger sent (command): setb D:\WorkSpace\sichuan\branches\v1.0.1-2017-07-12\lua\hall2\hall.lua 3441 
[192.168.88.238:47444] Debugger received (file, line, err): hall2/hall.lua 3441 nil 
Mapped remote request for 'lua/' to 'D:\WorkSpace\sichuan\branches\v1.0.1-2017-07-12\lua\'. 
Debugging session started in 'D:\WorkSpace\sichuan\branches\v1.0.1-2017-07-12\lua\'. 
[192.168.88.238:47444] Debugger sent (command): run 

答えて

0

それはそれはあなたのセットアップ(IDEのバージョン、リモートで使用するデバッガのバージョンの詳細がなくても動作していないことも理由を言うのは難しいですが、ディレクトリあなたはLinuxでデバッガを起動します)、ブレークポイントがトリガされない理由のいくつかはlisted in the FAQです。 IDEの最新リリース(v1.60)を使用していない場合、私はそれを試してみて、あなたがリモートで使用しているデバッガ(mobdebug.lua)も同様にリリースしていることを確認します。

+0

ご協力ありがとうございます。 ZeroBraneのバージョンは1.60です。 mobdebugは0.648で、Linux上のzerobraneも公式サイトの最新のものです。私はWindowsとLinuxのmobdebug.luaを比較します。これは同じです。私のプログラムはマルチスレッドなので、いくつかのインパクトはありますか?require( 'mobdebug')。start( "192.168.88.180")をそれらのいずれかに追加するだけです。 "luaL_dofile"関数への絶対パスを追加しますが、それでも機能しません。 '/ home/pomato/scb/lua /'を 'D:\ WorkSpace \ sichuan \ branches \ v1.0.1-2017-07-12 \ lua \'にマップしたリモート要求をマッピングしました。 – pomato

+0

多少の範囲をカバーする[このスレッドをチェック](https://www.freelists.org/post/zerobrane/Remote-debugging-IDE-project-path-vs-actual-file-path,5)したいかもしれません同様の状況であり、デバッガがどのようにクロスプラットフォームパスをマッピングするかについてのより詳細な説明を提供することができる。もっと詳細な情報を入手する方が簡単かもしれないので、プロジェクトウェブサイトのアドレスに私に電子メールを送ることができます。 –

関連する問題