@Steppers hi noted just above your previous message that the fix worked for me too, but I am repeating that now in case it got lost in the shuffle.
The web server works now, and the debugger works now too.I’m not super clear on what’s happening here, I have to admit, but I agree it looks promising.
It only really provides the same functionality as the parameter.watch stuff at the moment but it's a start.
Note: You'll probably have to use that loop fix again for it.
And on a related note, I've got a lot of advanced stuff in the works now. Server side scripting akin to PHP, Multiple Client handling & websockets so I expect things to get pretty spicy soon
I made a slightly more interactive version of the Debugger.
It tracks taps and increments a “tap” variable every time a touch ends.
Also, @Steppers: I gave it a generic icon that I sometimes use for my own utilities; maybe it could be a standard icon for library-type projects? (image attached too)
Nice, are you planning on automatically putting them on library projects without icons?
It seems to me that games and apps don’t need a default icon because icons made from screenshots are better, but library projects often have nothing to show visually and it would be handy to have a default icon for them.
@UberGoober Yes, I expect so. I think I'd like to enforce user icons for app & game projects but libraries often don't have anything worth using as an icon.
Comments
could the problem be that short timeout?
That fix worked for me too.
@dave1707 I'm glad that helped! Let me know if this helps you too @UberGoober
The .codea files are just plain old folders (not zip files) but iOS treats any folder with an extension like a file (sometimes unhelpfully).
On Mac it at least has an option to 'View Contents' of these bundle folders... iOS could do with it too.
The web server works now, and the debugger works now too.I’m not super clear on what’s happening here, I have to admit, but I agree it looks promising.
debugger? there's a debugger in there? how do I invoke that? thanks!
…maybe I’m missing something, but the title of the post includes “debug server”, at least presently. Am I misunderstanding the meaning of that?
It only really provides the same functionality as the parameter.watch stuff at the moment but it's a start.
Note: You'll probably have to use that loop fix again for it.
And on a related note, I've got a lot of advanced stuff in the works now. Server side scripting akin to PHP, Multiple Client handling & websockets so I expect things to get pretty spicy soon
I made a slightly more interactive version of the Debugger.
It tracks taps and increments a “tap” variable every time a touch ends.
Also, @Steppers: I gave it a generic icon that I sometimes use for my own utilities; maybe it could be a standard icon for library-type projects? (image attached too)
A sneak peak, code needs a little tidying up but WebSockets are working!
@UberGoober Nice, I actually have a few already included in the WebRepo project that are just unicode/emoji and rendered out (also attached).
It seems to me that games and apps don’t need a default icon because icons made from screenshots are better, but library projects often have nothing to show visually and it would be handy to have a default icon for them.
I’ve made various improvements in this version.
Basic usage to serve a static site from a folder in Codea’s documents folder is:
This serves all content in the
my_site
folder at port 80 (default for browsers).WebServer.zip contains the slimmed-down Library project that provides full documentation when connected to from a browser!
WebServerDemo.zip contains a more comprehensive example of the supported features (as well as the documentation).
Also available on WebRepo!
Documentation is available here