On Fri, Aug 27, 2010 at 2:11 PM, AndreArpin <ar...@kingston.net> wrote: > bool wxLuaDebugTarget::AddBreakPoint(const wxString &fileName, int lineNumber) > { > wxString breakPoint = CreateBreakPoint(fileName, lineNumber); > wxCriticalSectionLocker locker(m_breakPointListCriticalSection); > if (m_breakPointList.Index(breakPoint) == wxNOT_FOUND) > m_breakPointList.Add(breakPoint); > return true; > } > > Prevents duplicate entries to be inserted.
Thanks! > line:670 in DebugHook > > fileName = lua2wx(luaDebug.source+(luaDebug.source[=='@' ? 1: 0)); > > This allow debug break to work within loaded file. The @ symbol is sometime > prepend to the file name. I am not entirely sure when and why but it stop > breakpoint entries to be found. Lua does this for some reason in luaL_loadfile() in lauxlib.c. lua_pushfstring(L, "@%s", filename" I'm not sure I understand your code above? I think you mean to remove the prepended '@' like this. if (!fileName.IsEmpty() && (fileName[0] == wxT('@'))) fileName = fileName.Mid(1); I updated the CVS code with these changes. Thanks, John ------------------------------------------------------------------------------ Sell apps to millions through the Intel(R) Atom(Tm) Developer Program Be part of this innovative community and reach millions of netbook users worldwide. Take advantage of special opportunities to increase revenue and speed time-to-market. Join now, and jumpstart your future. http://p.sf.net/sfu/intel-atom-d2d _______________________________________________ wxlua-users mailing list wxlua-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxlua-users