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. 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. Andre ------------------------------------------------------------------------------ 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