Zerobrane Studio Löve2d Debug Mode Crash

General discussion about LÖVE, Lua, game development, puns, and unicorns.
Post Reply
nexusdawn
Prole
Posts: 2
Joined: Mon Jun 27, 2016 10:51 pm

Zerobrane Studio Löve2d Debug Mode Crash

Post by nexusdawn »

Been using Sublime text for my love2d experiments. Just discovered Zerobrane Studio, it's syntax highlighting/suggestions, and debugging mode which all seem very nice and practical.

Running on Windows 8. No problems running any Love2d Lua scripts in Zerobranes 'run mode' (F6), but when trying to run in 'debug' mode. Love.exe just crashes/it remains open, with a white background not doing anything.

I've followed Zerobranes instructions on how to active the debug code in Love2d's script. But this information might be outdated as it is from 2012?

Perhaps I should also mention, I've tried this on the love2d 0.10.0 (Which Zerobrane is supposed to be compatible with as of version 1.3) 0.10.1 both 32 and 64 bit versions, and no go.

This is the simplest code sample I could come up with to help illustrate the problem is:

Code: Select all

function love.load(arg)
  if arg [#arg] == "-debug" then require("mobdebug").start() end
end

function love.draw()
  love.graphics.print("Hello World!", 400, 300)
end
Just starting to code and feel myself in programming after a 10-15 year break, so debugging would help a lot ;) Any advise would be much appreciated.

Thank you most kindly
nexusdawn
Prole
Posts: 2
Joined: Mon Jun 27, 2016 10:51 pm

Re: Zerobrane Studio Löve2d Debug Mode Crash

Post by nexusdawn »

My bad, it seems for whatever reason (no I didn't insert a code line stop) The debugger code in Zerobrane Studio in Löve2d needs a 'Continue' debugging by pressing F5 (or by using the tool bar controls) after running the debug code:

Code: Select all

function love.load(arg)
  if arg [#arg] == "-debug" then require("mobdebug").start() end
end
Watch variables seem to update. Haven't tried stack or 'live coding updates'. But seems to work.

Hope this might be useful to anyone that may come across this issue.

Just in case, https://studio.zerobrane.com
User avatar
SiENcE
Party member
Posts: 792
Joined: Thu Jul 24, 2008 2:25 pm
Location: Berlin/Germany
Contact:

Re: Zerobrane Studio Löve2d Debug Mode Crash

Post by SiENcE »

As good as Zerobrane is, more stable and advanced in debugging is VS2015+BabeLua. You should try it :).
paulclinger
Party member
Posts: 227
Joined: Thu Jun 28, 2012 8:46 pm

Re: Zerobrane Studio Löve2d Debug Mode Crash

Post by paulclinger »

> it seems for whatever reason (no I didn't insert a code line stop) The debugger code in Zerobrane Studio in Löve2d needs a 'Continue' debugging by pressing F5 (or by using the tool bar controls) after running the debug code:

@nexusdawn, yes, that's the default configuration for the Löve interpreter. You can make it run without stopping by adding `debugger.runonstart=true` to the config file (see: https://studio.zerobrane.com/doc-genera ... s#debugger). I should probably make it a default for Löve as this is not the first time it's being discussed. Paul.
fsc1
Prole
Posts: 3
Joined: Wed Jun 29, 2016 12:53 pm

Re: Zerobrane Studio Löve2d Debug Mode Crash

Post by fsc1 »

I registered / came to post about the "debugger.runonstart=true" option. But Paul, I'd like to say thanks for making Love2d come back to focus with that option enabled from version 1.20 to 1.30 (in 1.20 even with that option enabled Love2d at least for me stayed unfocused / behind ZBS). Great piece of software you have created Paul. New programmers can get started effortlessly with your IDE and Love2d, literally just by downloading both pieces of software and making sure that Love2d's in the system path (works also on Ubuntu the same way, no big complications).
paulclinger
Party member
Posts: 227
Joined: Thu Jun 28, 2012 8:46 pm

Re: Zerobrane Studio Löve2d Debug Mode Crash

Post by paulclinger »

@fsc1, thank you for the supportive feedback!

@nexusdawn, I've made the change to the Löve integration, so it will get included in the next release. If you want to give it a try, you can get the master branch from the repository, which also includes Löve API updated for v0.10.1.
User avatar
mr_happy
Citizen
Posts: 84
Joined: Fri Mar 18, 2016 8:57 pm

Re: Zerobrane Studio Löve2d Debug Mode Crash

Post by mr_happy »

fsc1 wrote: Great piece of software you have created Paul.
I'd like to second that. Zerobrane is the most pleasant IDE I've ever used (and I've used a lot).
Post Reply

Who is online

Users browsing this forum: No registered users and 182 guests