Skip to content

Commit 7f69182

Browse files
committed
added some explanation for return value of debuggee.start in README(_ko)?.md
1 parent 45fa986 commit 7f69182

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

Extension/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,8 @@ Connect with the debugger. `jsonLib` is a JSON library containing `.encode` and
114114
`Config.connectTimeout`,` config.controllerHost`, and `config.controllerPort` are settings for remote debugging.
115115
If `config.redirectPrint` is true, the `print` call is intercepted and displayed in the Visual Studio Code output window. Use this item if you want Gideros to print the results of a `print` called just before the breakpoint.
116116

117+
`Debuggee.start` returns two values. The first return value is `true` if it is normally connected to the debugger, otherwise it is` false`. If the `OP_HALT` patch is applied in the current Lua VM, the second return value is `'halt'`, otherwise it is `'pure'`.
118+
117119
## debuggee.poll()
118120
Processes queued debugging commands and returns immediately.
119121

Extension/README_ko.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,8 @@ lua 5.1.5에 이 패치를 적용한 결과는 [여기](https://github.com/devca
114114
`config.connectTimeout`, `config.controllerHost`, `config.controllerPort`는 리모트 디버깅을 위한 설정입니다.
115115
`config.redirectPrint``true`로 하면 `print` 호출을 가로채어 Visual Studio Code의 출력창에 표시합니다. Gideros를 사용할 때 중단점 직전에 호출한 `print`의 결과가 정상적으로 나오게 하려면 이 항목을 사용하십시오.
116116

117+
`debuggee.start`는 두 개의 값을 리턴합니다. 첫번째 리턴값은 디버거에 정상적으로 연결했을 경우 `true`이고, 그렇지 않으면 `false`입니다. 두번째 리턴값은 현재 루아 VM에 `OP_HALT` 패치가 되어있으면 `'halt'`, 아니면 `'pure'` 입니다.
118+
117119
## debuggee.poll()
118120
쌓인 디버깅 명령을 처리하고 즉시 리턴합니다.
119121

0 commit comments

Comments
 (0)