Debug - A whole new way of debugging your game

Showcase your libraries, tools and other projects that help your fellow love users.
Post Reply
User avatar
Jasoco
Inner party member
Posts: 3726
Joined: Mon Jun 22, 2009 9:35 am
Location: Pennsylvania, USA
Contact:

Re: Debug - A whole new way of debugging your game

Post by Jasoco »

bartbes wrote:It probably uses love.timer.sleep somewhere, in which case you should divide that value by 1000.
Yeah, that got me too at first.
gfreak
Prole
Posts: 29
Joined: Wed Jan 04, 2012 5:32 pm

Re: Debug - A whole new way of debugging your game

Post by gfreak »

and event names "keypressed"

but still - love freeze

any one have code for 0.8.0?
rickydaan
Prole
Posts: 4
Joined: Tue Mar 20, 2012 5:04 pm

Re: Debug - A whole new way of debugging your game

Post by rickydaan »

How did you do that input, read() or local a = read() ect doesnt work?
Redshft
Prole
Posts: 12
Joined: Mon Apr 09, 2012 7:21 pm

Re: Debug - A whole new way of debugging your game

Post by Redshft »

I'm new to Lua and Love2D, and i'm having trouble integrating this script. Do I need to do anything other than:

Code: Select all

require("debug")
If I type that, and launch the game, and try shift+f8 nothing happens. Ctrl+f8 doesn't work either.

For some reason typing this also gives an error:

Code: Select all

require("debug.lua") --error module 'debug.lua' not found
Oddly, debug.lua exists in the same directory as main.lua.
User avatar
Kadoba
Party member
Posts: 399
Joined: Mon Jan 10, 2011 8:25 am
Location: Oklahoma

Re: Debug - A whole new way of debugging your game

Post by Kadoba »

Redshft wrote: For some reason typing this also gives an error:

Code: Select all

require("debug.lua") --error module 'debug.lua' not found
For lua, a period can also be a separator for directories. So you can require things like "scripts.library.enemy" instead of "scripts/library/enemy". Prior to 0.8.0 love allowed you to end a file with ".lua" even though pure lua doesn't let you do that. It was decided this was a bad idea so it was taken out. require "debug.lua" actually now looks for a lua file in the debug folder. This probably doesn't exist, of course.

Short version: remove the .lua part
Redshft
Prole
Posts: 12
Joined: Mon Apr 09, 2012 7:21 pm

Re: Debug - A whole new way of debugging your game

Post by Redshft »

Ok, thanks. Also, do I need to run anything, to get this script to work? Right now the console is not working when I press control and F8 or shift and f8.
User avatar
Qcode
Party member
Posts: 170
Joined: Tue Jan 10, 2012 1:35 am

Re: Debug - A whole new way of debugging your game

Post by Qcode »

Sorry for the huge bump, but are you still working on this? It would be great to see it in 0.8.0
User avatar
Qcode
Party member
Posts: 170
Joined: Tue Jan 10, 2012 1:35 am

Re: Debug - A whole new way of debugging your game

Post by Qcode »

Sorry for the huge bump, but are you still working on this? It would be great to see it in 0.8.0
B-Man99
Prole
Posts: 36
Joined: Wed Jul 25, 2012 10:51 pm
Location: Right behind you. I know you looked. Heck, even I looked

Re: Debug - A whole new way of debugging your game

Post by B-Man99 »

It won't go up for me when I press shift-f8...
kruegsch
Prole
Posts: 3
Joined: Mon Jul 16, 2012 8:21 pm

Re: Debug - A whole new way of debugging your game

Post by kruegsch »

I updated vrdl.love-console to LÖVE v0.80. A handy tool :)
https://github.com/kruegsch/love-console
Attachments
love-console.love
(31.57 KiB) Downloaded 204 times
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests