zoukankan      html  css  js  c++  java
  • 可以用命令行控制eclipse断点增加删除、远程调试创建与启动的插件

    java

    
    # 创建断点(支持条件断点)
    curl  -X PUT -H "Content-Type:application/json" --data '{"language":"java","condition":"i == 1","charStart":283,"charEnd":307,"lineNumber":16,"typeName":"com.code260.tools.redstar.dp.java.TestStub","hitCount":-1,"projectName":"test-debug","filePath":"/src/com/code260/tools/redstar/dp/java/TestStub.java"}' http://127.0.0.1:8884/redstar/breakpoint/java
    
    # 删除断点
    curl  -X DELETE -H "Content-Type:application/json" --data '{"language":"java","condition":"i == 1","charStart":283,"charEnd":307,"lineNumber":16,"typeName":"com.code260.tools.redstar.dp.java.TestStub","hitCount":-1,"projectName":"test-debug","filePath":"/src/com/code260/tools/redstar/dp/java/TestStub.java"}' http://127.0.0.1:8884/redstar/breakpoint/java
    
    # 创建远程调试
    curl  -X PUT -H "Content-Type:application/json" --data '{"name":"tes-debug-001","hostname":"127.0.0.1","port":8501,"projectName":"test-debug","vmConnector":"org.eclipse.jdt.launching.socketAttachConnector","allowTerminal":false}' http://127.0.0.1:8884/redstar/launch-debug/java
    
    # 启动远程调试
    curl  -X POST -H "Content-Type:application/json" --data '{"name":"tes-debug-001"}' http://127.0.0.1:8884/redstar/launch-debug/java
    
    # 查询所有断点
    curl http://127.0.0.1:8884/redstar/breakpoint/java
    
    # 监听断点事件
    curl http://127.0.0.1:8884/redstar/debug-event/java/watch
    
    # 放掉一个断点
    curl  -X POST -H "Content-Type:application/json" --data '{"launchName":"tes-debug-001", "threadName":"main"}' http://127.0.0.1:8884/redstar/breakpoint/java/resume
    
    # inspect一个表达式
    curl  -X POST -H "Content-Type:application/json" --data '{"launchName":"tes-debug-001", "threadName":"main", "expression":"i=i+5","projectName":"test-debug"}' http://127.0.0.1:8884/redstar/debug-event/java/inspect
    

    scala

    # 创建断点(支持条件断点)
    curl  -X PUT -H "Content-Type:application/json" --data '{"language":"scala","condition":"","charStart":-1,"charEnd":-1,"lineNumber":6,"typeName":"testpkg.TestObject","hitCount":-1,"projectName":"test-scala","filePath":"/src/testpkg/TestObject.scala"}' http://127.0.0.1:8884/redstar/breakpoint/java
    
    # 删除断点
    curl  -X DELETE -H "Content-Type:application/json" --data '{"language":"scala","condition":"i == 1","charStart":-1,"charEnd":-1,"lineNumber":6,"typeName":"testpkg.TestObject","hitCount":-1,"projectName":"test-scala","filePath":"/src/testpkg/TestObject.scala"}' http://127.0.0.1:8884/redstar/breakpoint/java
    
    # 创建远程调试
    curl  -X PUT -H "Content-Type:application/json" --data '{"name":"tes-debug-001","hostname":"127.0.0.1","port":8500,"projectName":"test-scala","vmConnector":"org.scala-ide.sdt.debug.socketAttachConnector","allowTerminal":false}' http://127.0.0.1:8884/redstar/launch-debug/java
    
    
    # 启动远程调试
    curl  -X POST -H "Content-Type:application/json" --data '{"name":"tes-debug-001"}' http://127.0.0.1:8884/redstar/launch-debug/java
    
    # 查询所有断点
    curl http://127.0.0.1:8884/redstar/breakpoint/java
    
    # 监听断点事件
    curl http://127.0.0.1:8884/redstar/debug-event/java/watch
    
    # 放掉一个断点
    curl  -X POST -H "Content-Type:application/json" --data '{"launchName":"tes-debug-001", "threadName":"main"}' http://127.0.0.1:8884/redstar/breakpoint/java/resume
    
    # inspect一个表达式
    curl  -X POST -H "Content-Type:application/json" --data '{"launchName":"tes-debug-001", "threadName":"main", "expression":"i=i+5","projectName":"test-debug"}' http://127.0.0.1:8884/redstar/debug-event/java/inspect
    
    

    插件下载地址

  • 相关阅读:
    C/C++,彩色图像小游戏。
    js 调用百度地图,并且定位用户地址,显示省市区街,经纬度
    C/C++ 双精度double 数据相加出错缺陷解释
    辗转相除法求最大公约数,非goto
    如何用 js 获取table 或者其他块状标签的 宽和高
    如何用 ajax 连接mysql数据库,并且获取从中返回的数据。ajax获取从mysql返回的数据。responseXML分别输出不同数据的方法。
    C++ 连接数据库的入口和获取列数、数据
    Win10:如何修改双网卡的优先级?
    如何拉动内需,击中客户深层需求,4个经典案例分析!
    单点登录SSO简介
  • 原文地址:https://www.cnblogs.com/simoncook/p/12239994.html
Copyright © 2011-2022 走看看