Srar / node-tap

基于TypeScript实现的开源SSTap
Apache License 2.0
681 stars 150 forks source link

如何调试运行这个项目 #39

Closed MingqianYang closed 6 years ago

MingqianYang commented 6 years ago

各位大神,请问如何调试运行这个项目?我想深入解刨一下。 我有vs2017,也安装了TypeScript

Srar commented 6 years ago

进入项目目录安装依赖

npm install --unsafe

运行

 .\node_modules\.bin\ts-node .\test\test.ts
MingqianYang commented 6 years ago

image 我照您的指令打了上去,出现了这个,这是啥意思?

能不能像c++其他程序可以加断点调试的那种?

Srar commented 6 years ago

这个是启动参数说明

有关于typescript打断点调试方式请查别的资料

Yang Mingqian notifications@github.com于2018年7月19日 周四14:46写道:

[image: image] https://user-images.githubusercontent.com/15353430/42925937-2d310f7c-8b73-11e8-91ae-3a01a50cf636.png 我照您的指令打了上去,出现了这个,这是啥意思?

能不能像c++其他程序可以加断点调试的那种?

— You are receiving this because you modified the open/close state.

Reply to this email directly, view it on GitHub https://github.com/Srar/node-tap/issues/39#issuecomment-406172337, or mute the thread https://github.com/notifications/unsubscribe-auth/ALgk4viHdUYzrw8-xuOs3nuDNyHGg8RUks5uICtjgaJpZM4VV068 .

MingqianYang commented 6 years ago

这个项目,是不是只支持浏览器代理,

其他软件,比如下载软件或玩游戏时,能支持代理吗?

Srar commented 6 years ago

只要是tcp/udp就支持

Yang Mingqian notifications@github.com于2018年7月19日 周四14:55写道:

这个项目,是不是只支持浏览器代理,

其他软件,比如下载软件或玩游戏时,能支持代理吗?

— You are receiving this because you modified the open/close state.

Reply to this email directly, view it on GitHub https://github.com/Srar/node-tap/issues/39#issuecomment-406174106, or mute the thread https://github.com/notifications/unsubscribe-auth/ALgk4qyR0CGzaP_B1A_N588UDHfh8rpOks5uIC1PgaJpZM4VV068 .

MingqianYang commented 6 years ago

我的理解是Typescript无法获取虚拟网卡设备的的信息, 所以就用c++的方式打包成addon二进制文件(相当于一个.dll), 然后Typescript调用addon里面的函数跟数据。

我的理解对吗?

Srar commented 6 years ago

是的

Yang Mingqian notifications@github.com于2018年7月19日 周四15:35写道:

我的理解是Typescript无法获取虚拟网卡设备的的信息, 所以就用c++的方式打包成addon二进制文件(相当于一个.dll), 然后Typescript调用addon里面的函数跟数据。

我的理解对吗?

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/Srar/node-tap/issues/39#issuecomment-406183592, or mute the thread https://github.com/notifications/unsubscribe-auth/ALgk4rEB0k5fqcWOQe7ZJrA94Gb5AcBaks5uIDa-gaJpZM4VV068 .