SourceForge logo
SourceForge logo
Menu

wxlua-users — wxLua list for users and developers

You can subscribe to this list here.

2005 Jan
Feb
Mar
Apr
May
Jun
(60)
Jul
(35)
Aug
(32)
Sep
(5)
Oct
(5)
Nov
(58)
Dec
(34)
2006 Jan
(114)
Feb
(184)
Mar
(153)
Apr
(90)
May
(153)
Jun
(59)
Jul
(24)
Aug
(43)
Sep
(17)
Oct
(34)
Nov
(11)
Dec
(204)
2007 Jan
(84)
Feb
(119)
Mar
(38)
Apr
(28)
May
(52)
Jun
(105)
Jul
(64)
Aug
(67)
Sep
(14)
Oct
(3)
Nov
(28)
Dec
(55)
2008 Jan
(228)
Feb
(55)
Mar
(30)
Apr
(30)
May
(15)
Jun
(20)
Jul
(12)
Aug
(3)
Sep
(13)
Oct
(54)
Nov
(35)
Dec
(35)
2009 Jan
(19)
Feb
(20)
Mar
(34)
Apr
(4)
May
(60)
Jun
(25)
Jul
(16)
Aug
(51)
Sep
(19)
Oct
(62)
Nov
(21)
Dec
(12)
2010 Jan
(1)
Feb
Mar
(4)
Apr
(12)
May
(23)
Jun
(13)
Jul
(1)
Aug
(40)
Sep
(18)
Oct
(21)
Nov
(26)
Dec
(34)
2011 Jan
(17)
Feb
(23)
Mar
(1)
Apr
(10)
May
(1)
Jun
(5)
Jul
(1)
Aug
Sep
Oct
(2)
Nov
Dec
(43)
2012 Jan
(5)
Feb
(19)
Mar
(6)
Apr
(24)
May
(39)
Jun
(83)
Jul
(29)
Aug
(36)
Sep
(64)
Oct
(55)
Nov
(12)
Dec
(7)
2013 Jan
(17)
Feb
(10)
Mar
(37)
Apr
(27)
May
(13)
Jun
(9)
Jul
(7)
Aug
(61)
Sep
(23)
Oct
(23)
Nov
(30)
Dec
(16)
2014 Jan
(23)
Feb
(13)
Mar
(9)
Apr
(17)
May
(2)
Jun
(11)
Jul
(2)
Aug
Sep
(9)
Oct
(24)
Nov
(2)
Dec
(14)
2015 Jan
(6)
Feb
(4)
Mar
(17)
Apr
May
(7)
Jun
(3)
Jul
Aug
Sep
(2)
Oct
(21)
Nov
(6)
Dec
(2)
2016 Jan
(4)
Feb
(2)
Mar
(7)
Apr
(3)
May
(11)
Jun
(6)
Jul
Aug
(1)
Sep
Oct
Nov
Dec
2017 Jan
Feb
Mar
Apr
(1)
May
(1)
Jun
Jul
Aug
Sep
Oct
Nov
Dec
2018 Jan
(2)
Feb
Mar
Apr
May
Jun
Jul
Aug
Sep
Oct
Nov
Dec
2019 Jan
Feb
Mar
(6)
Apr
May
Jun
Jul
Aug
Sep
Oct
Nov
Dec
2020 Jan
Feb
Mar
Apr
May
Jun
Jul
Aug
Sep
(1)
Oct
Nov
Dec
2022 Jan
Feb
Mar
Apr
May
Jun
Jul
Aug
Sep
Oct
(2)
Nov
(4)
Dec
2023 Jan
Feb
Mar
Apr
May
Jun
Jul
Aug
Sep
Oct
(8)
Nov
Dec
2024 Jan
Feb
Mar
Apr
May
Jun
Jul
(2)
Aug
Sep
Oct
Nov
Dec
S M T W T F S



1
2
3
4
(2)
5
6
7
8
9
(3)
10
11
(1)
12
13
14
(2)
15
(1)
16
(2)
17
(6)
18
19
20
(3)
21
22
23
(1)
24
25
26
27
(1)
28
(2)
29
(5)
30
(2)
31
(5)

Showing 2 results of 2

From: Milind G. <mil...@gm...> - 2012年08月28日 20:36:29
Thanks Paul,
 Yes I see that I need to have it in a separate file and then it works.
Regards,
Milind
On Mon, Aug 27, 2012 at 5:41 PM, Paul K <pau...@ya...> wrote:
> Hi Milind,
>
> I quickly tried that in wxLua, but couldn't figure out how to specify
> the folder to run scripts in so that loadfile and io.open would work.
>
> I also tried to do this in ZeroBrane Studio
> (https://github.com/pkulchenko/ZeroBraneStudio) and it seems like it
> may work for you (the IDE is wxlua based). I'm not sure what your code
> looks like, but let's say you have loadedfile.lua script that you are
> trying to load and it has the following lines:
>
> -- loadedfile.lua
> print "123"
> print "456"
> function foo()
> print "foo"
> end
>
> You also have loadfile.lua script which has something like this:
>
> -- loadfile.lua
> --local func = loadfile('loadedfile.lua')
> local f = assert(io.open('loadedfile.lua'))
> local str = f:read('*all')
> f:close()
> local func = loadstring(str, 'loadedfile.lua')
> func()
> foo()
> print 'Done'
>
> If you open both of these files in ZeroBrane Studio and start
> debugging with loadfile.lua being in the active editor window, you
> should be able to step through both of them. You can also set a
> breakpoint on either of the files and it should work.
>
> Note that I added "loadedfile.lua" as a parameter for loadstring(),
> which informs the debug interface as to where to search for the source
> code.
>
> Paul.
>
> On Mon, Aug 27, 2012 at 3:37 PM, Milind Gupta <mil...@gm...>
> wrote:
> > Hi,
> > I have a lua program in which I load a lua script as a string
> > (loadstring) and then execute it. Is it possible to debug this script in
> > wxLua.exe? How would I add a breakpoint in there?
> >
> > Thanks,
> > Milind
> >
> >
> ------------------------------------------------------------------------------
> > Live Security Virtual Conference
> > Exclusive live event will cover all the ways today's security and
> > threat landscape has changed and how IT managers can respond. Discussions
> > will include endpoint security, mobile security and the latest in malware
> > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> > _______________________________________________
> > wxlua-users mailing list
> > wxl...@li...
> > https://lists.sourceforge.net/lists/listinfo/wxlua-users
> >
>
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> wxlua-users mailing list
> wxl...@li...
> https://lists.sourceforge.net/lists/listinfo/wxlua-users
>
From: Paul K <pau...@ya...> - 2012年08月28日 00:41:46
Hi Milind,
I quickly tried that in wxLua, but couldn't figure out how to specify
the folder to run scripts in so that loadfile and io.open would work.
I also tried to do this in ZeroBrane Studio
(https://github.com/pkulchenko/ZeroBraneStudio) and it seems like it
may work for you (the IDE is wxlua based). I'm not sure what your code
looks like, but let's say you have loadedfile.lua script that you are
trying to load and it has the following lines:
-- loadedfile.lua
print "123"
print "456"
function foo()
 print "foo"
end
You also have loadfile.lua script which has something like this:
-- loadfile.lua
--local func = loadfile('loadedfile.lua')
local f = assert(io.open('loadedfile.lua'))
local str = f:read('*all')
f:close()
local func = loadstring(str, 'loadedfile.lua')
func()
foo()
print 'Done'
If you open both of these files in ZeroBrane Studio and start
debugging with loadfile.lua being in the active editor window, you
should be able to step through both of them. You can also set a
breakpoint on either of the files and it should work.
Note that I added "loadedfile.lua" as a parameter for loadstring(),
which informs the debug interface as to where to search for the source
code.
Paul.
On Mon, Aug 27, 2012 at 3:37 PM, Milind Gupta <mil...@gm...> wrote:
> Hi,
> I have a lua program in which I load a lua script as a string
> (loadstring) and then execute it. Is it possible to debug this script in
> wxLua.exe? How would I add a breakpoint in there?
>
> Thanks,
> Milind
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> wxlua-users mailing list
> wxl...@li...
> https://lists.sourceforge.net/lists/listinfo/wxlua-users
>

Showing 2 results of 2

Thanks for helping keep SourceForge clean.
X





Briefly describe the problem (required):
Upload screenshot of ad (required):
Select a file, or drag & drop file here.
Screenshot instructions:

Click URL instructions:
Right-click on the ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)

More information about our ad policies

Ad destination/click URL:

AltStyle によって変換されたページ (->オリジナル) /