react-native-sqlite-storage icon indicating copy to clipboard operation
react-native-sqlite-storage copied to clipboard

how to debag? how to view the contents of the table in react-native-debugger?

Open valery-lavrik opened this issue 2 years ago • 7 comments

Everything works well. But it is very inconvenient because there is no way to visually examine the table.

Is there a way to connect some kind of debugger to the database to visualize the database?

valery-lavrik avatar Dec 12 '22 10:12 valery-lavrik

Something inside the program would be awesome, but I don't think this repo's getting updated again anytime soon, so until then, there's SqliteStudio or any number of other GUI sqlite editors

MacKenzieHnC avatar Dec 29 '22 19:12 MacKenzieHnC

@MacKenzieHnC But how can this program open a database in react-native

valery-lavrik avatar Dec 30 '22 07:12 valery-lavrik

@valery-lavrik I don't understand the question. If you want to access the db, follow the documentation. Unless you're talking about in react-native-windows, in which case there's a hack you have to do, which I outlined here.

If you wanna look through the db in-program, you'll have to write the code for that yourself.

I promise I am trying to be helpful when I tell you that you have to be more thorough in how you ask programming questions or no one will be able to help you. What device are you compiling for? What have you tried? Where have you looked for answers? What is your level of experience? Is it that you don't know how to use this tool or are you unfamiliar with React Native paradigms?

MacKenzieHnC avatar Jan 05 '23 16:01 MacKenzieHnC

@MacKenzieHnC Good afternoon! I'm sorry that I didn't accurately describe my question. I meant react-native (android or ios). How can I visually view the contents of the table? is there such a plugin in Flipper for example? or other ways?

valery-lavrik avatar Jan 06 '23 08:01 valery-lavrik

To the best of my knowledge, no, not without just building the display logic yourself or some weird hack (like loading it to a variable and using your debugging tools). But there isn't anything I've found that would let you just scroll through the data directly; this repo just allows you to send SQL queries to a database.

So you have the ability to scan the db, but you have to build the tools to do so yourself if you insist on doing it purely through React.

I really do recommend SQLiteStudio for this function. It is extremely well-suited for this purpose; it just isn't React-based.

MacKenzieHnC avatar Jan 06 '23 17:01 MacKenzieHnC

Thanks! I thought so. I will write my own debugging tool

valery-lavrik avatar Jan 07 '23 06:01 valery-lavrik

You're welcome. Good luck!

MacKenzieHnC avatar Jan 07 '23 14:01 MacKenzieHnC