llmhyy / microbat

A feedback-based debugger for interactively recommending suspicious step in buggy program execution.
55 stars 16 forks source link

store execution trace into sqlite3 database #208

Closed llmhyy closed 3 years ago

llmhyy commented 3 years ago
  1. try to modify the trace storage (check https://github.com/llmhyy/microbat/wiki/Trace-Debugging)
  2. sync the generated ddl in the code.
llmhyy commented 3 years ago

for translate mysql to sqlite: microbat.sql.SqliteConnectionFactory.transferSql() throws FileNotFoundException

llmhyy commented 3 years ago

task 2: follow: https://github.com/llmhyy/microbat/wiki/Trace-Debugging

llmhyy commented 3 years ago

org.sqlite.SQLiteException: [SQLITE_ERROR] SQL error or missing database (table Run has no column named thread_status) at org.sqlite.core.DB.newSQLException(DB.java:1010) at org.sqlite.core.DB.newSQLException(DB.java:1022) at org.sqlite.core.DB.throwex(DB.java:987) at org.sqlite.core.NativeDB.prepare_utf8(Native Method) at org.sqlite.core.NativeDB.prepare(NativeDB.java:134) at org.sqlite.core.DB.prepare(DB.java:264) at org.sqlite.core.CorePreparedStatement.(CorePreparedStatement.java:45) at org.sqlite.jdbc3.JDBC3PreparedStatement.(JDBC3PreparedStatement.java:30) at org.sqlite.jdbc4.JDBC4PreparedStatement.(JDBC4PreparedStatement.java:19) at org.sqlite.jdbc4.JDBC4Connection.prepareStatement(JDBC4Connection.java:35) at org.sqlite.jdbc3.JDBC3Connection.prepareStatement(JDBC3Connection.java:241) at org.sqlite.jdbc3.JDBC3Connection.prepareStatement(JDBC3Connection.java:205) at microbat.sql.SqliteRecorder.insertRun(SqliteRecorder.java:67) at microbat.sql.SqliteRecorder.store(SqliteRecorder.java:48) at microbat.instrumentation.TraceAgent.shutdown(TraceAgent.java:74) at microbat.instrumentation.Agent.stop(Agent.java:77) at microbat.instrumentation.Agent._exitProgram(Agent.java:56) at exp.datarace.DataRaces.main(DataRaces.java:13) |