Code Generating with GPT without handling exceptions

I was curious that GPT could write the test code which leads crashes for debugging, but GPT generates code with handling exceptions that could not leads to crash.

Is it is forbidden to create code without exception handling or any other ways to get rid of this with prompting?

1 Like

@Daily If you want GPT to write failed code for you to debug, it can. However if you actually want to cause a device to crash, it flags this as illegal:

@Toth Thank you for your reply. I tried to circumventing to create any errors or leads crashes, GPT crated codes causes errors but not the crashing one.

1 Like