Why doesn't debugger stop at breakpoints inside certain functions? Follow
For example:
def tokenize_pairs(pt, en):
### I set a break point here but it doesn't stop!
pt = tokenizers.pt.tokenize(pt)
pt = pt.to_tensor()
en = tokenizers.en.tokenize(en)
en = en.to_tensor()
return pt, en
# 4. Make batches
BUFFER_SIZE = 20000
BATCH_SIZE = 64
def make_batches(ds):
return (
ds
.cache()
.shuffle(BUFFER_SIZE)
.batch(BATCH_SIZE)
.map(tokenize_pairs, num_parallel_calls=tf.data.experimental.AUTOTUNE)
.prefetch(tf.data.experimental.AUTOTUNE))
train_batches = make_batches(train_examples)
val_batches = make_batches(val_examples)
print('batch sizes: {} {}'.format(len(train_batches), len(val_batches)))
For this piece of code, it doesn't stop at this line:
pt = tokenizers.pt.tokenize(pt)
Please sign in to leave a comment.
Hello,
Please provide me with a simplified project example and steps to reproduce and upload your logs folder zipped from ***Help | Collect logs and Diagnostic Data***
to the FTP
https://uploads.jetbrains.com/ and please let me know the filename.
Hello:
Upload ID: 2021_09_22_3MR59i3xzFfM1nHB (file: pycharm-logs-20210922-085011.zip)
To install the project, here are the requirements.txt in Python3:
The full code:
To reproduce the problem, just set a breakpoint inside the tokenize_pairs function and debug it, you will find that it won't stop at the breakpoint.