Kha
                                
                                 Kha copied to clipboard
                                
                                    Kha copied to clipboard
                            
                            
                            
                        Krom debugger doesn't hit breakpoints, debugger not attached?
I downloaded Kode Studio 18.11 direct from github. In addition I downloaded Haxe, Node.js and the BUTTONS Kha example from Lewis Lepton BUTTONS.
After installing I tried to debug. Breakpoint in Project.hx line 36.
- DEBUG target Kha.HTML5
- the kodestudio window changed to the debug theme, the bottom was orange
- mouseclick on button in application => breakpoint hit
- DEBUG target Kha.KROM
- the kodestudio window changed to the debug theme, the bottom was orange
- mouseclick on button in application => breakpoint didn't hit
One Error: "resource": "/e:/Armory/Kha/Example/BUTTONS/Error", "owner": "generated_diagnostic_collection_name#1", "severity": 8, "message": "No completion point was found", "source": "diagnostics", "startLineNumber": 1, "startColumn": 1, "endLineNumber": 1, "endColumn": 1
Attachment: My project folder with
- .vscode
- build
- Sources
- khafile.js
You don't need Haxe or Node.js for Kode Studio. But you need to tell give me more information. What kind of a system are you running? Do breakpoints directly in the js file work? Can you use the pause button?
(Without Haxe and Node.js, it was a lot worse. In this video What is Kha? Cross Platform Game Magic Sauce! (Gamefromscratch) I found the hint to get rid of some of my Kha Kode Studio problems at 3:05.)
I'm running Windows 10 Pro version 1803 64 bit.
When I start Kode Studio I get this error in output for Haxe: Haxe language server started Listening on port 6000 Building Cache... Parsing Classpaths... Error: No completion point was found Done.
Do breakpoints directly in the js file work?
Do you mean this Debugging in JavaScript?
A js.Lib.debug(); breakpoint in project.hx does hit and I can use the pause button. `
public function onMouseDown(button:Int, x:Int, y:Int){
        uiButton01.onMouseDown(button, x, y);
	js.Lib.debug(); 
	uiButton02.onMouseDown(button, x, y);
	uiButton03.onMouseDown(button, x, y);
}`
This works with Kha:Krom as well as with Kha:HTML5.